Audience programs: update, delete
The Audience Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.
Reference for Audience, one group of Audience programs.
Audience.update
Changes the given properties of an Audience. Verb page.
do: return await $.Audience.update(input)Emits Audience.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Audience. |
type | list of Noun | The Nouns this Thing is an instance of. | |
outside | json | The ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating. | |
query | json | The saved query that defines a dynamic Collection. | |
size | integer | How many people match. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
audience | Audience | required | The Audience. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Audience.update({ id: 'audience_vmVkEYrXCN', size: 1 })"
}
}Audience.delete
Deletes an Audience: a soft delete that keeps its history, undone by Thing.restore. Verb page.
do: return await $.Audience.delete(input)Emits Audience.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Audience. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
audience | Audience | required | The Audience. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Audience.delete({ id: 'audience_vmVkEYrXCN' })"
}
}