Skip to content

Purpose programs: update, delete

The Purpose Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Purpose, one group of Purpose programs.

Purpose.update

Changes the given properties of a Purpose. Verb page.

Text
do: return await $.Purpose.update(input)

Emits Purpose.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Purpose.
namestringThe reason, such as marketing email or call recording.

Returns

OutputTypeRequiredDescription
purposePurposerequiredThe Purpose.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Purpose.update({ id: 'purpose_Aoz9nBatRR', name: 'Leaseline' })"
  }
}

Purpose.delete

Deletes a Purpose: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.Purpose.delete(input)

Emits Purpose.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Purpose.

Returns

OutputTypeRequiredDescription
purposePurposerequiredThe Purpose.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Purpose.delete({ id: 'purpose_Aoz9nBatRR' })"
  }
}