Setting programs: update, delete
The Setting Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.
Reference for Setting, one group of Setting programs.
Setting.update
Changes the given properties of a Setting. Verb page.
do: return await $.Setting.update(input)Emits Setting.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Setting. |
key | string | The name of the choice. | |
value | json | The chosen value. | |
locked | boolean | True when no holder below may override it. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
setting | Setting | required | The Setting. |
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 $.Setting.update({ id: 'setting_mfZPXxFQYD', value: {} })"
}
}Setting.delete
Deletes a Setting: a soft delete that keeps its history, undone by Thing.restore. Verb page.
do: return await $.Setting.delete(input)Emits Setting.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Setting. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
setting | Setting | required | The Setting. |
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 $.Setting.delete({ id: 'setting_mfZPXxFQYD' })"
}
}