Mandate programs: update, delete
The Mandate Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.
Reference for Mandate, one group of Mandate programs.
Mandate.update
Changes the given properties of a Mandate. Verb page.
do: return await $.Mandate.update(input)Emits Mandate.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Mandate. |
expiresAt | datetime | When it lapses. | |
limit | Limit | The Limit that bounds it. | |
verb | string | The Verb it covers, as Noun.verb. | |
topics | string[] | What it may act on; an Action outside them becomes an Approval. | |
channels | list of Channel | The Channels it may send through. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The Mandate. |
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 $.Mandate.update({ id: 'mandate_mKKPrmFQYD', expiresAt: '2026-10-22T12: 00: 00Z' })"
}
}Mandate.delete
Deletes a Mandate: a soft delete that keeps its history, undone by Thing.restore. Verb page.
do: return await $.Mandate.delete(input)Emits Mandate.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Mandate. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The Mandate. |
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 $.Mandate.delete({ id: 'mandate_mKKPrmFQYD' })"
}
}