Consent programs: update
The Consent Verbs update as MCP do programs, with inputs, result, refusals and an example.
Reference for Consent, one group of Consent programs.
Consent.update
Changes the given properties of a Consent. Verb page.
do: return await $.Consent.update(input)Emits Consent.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Consent. |
basis | string | The lawful basis, such as consent or contract. Never randomized. | |
region | string | The jurisdiction whose rules apply. Never randomized. | |
withdrawnAt | datetime | When the person withdrew it. Never randomized. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
consent | Consent | required | The Consent. |
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 $.Consent.update({ id: 'consent_lMkrg7nUGY', withdrawnAt: '2026-10-22T12: 00: 00Z' })"
}
}