Skip to content

Party programs: update, delete

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

Reference for Party, one group of Party programs.

Party.update

Changes the given properties of a Party. Verb page.

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

Emits Party.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Party.
namestringThe legal or personal name.

Returns

OutputTypeRequiredDescription
partyPartyrequiredThe Party.

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 $.Party.update({ id: 'party_hmQWaPrAyZ', name: 'Leaseline' })"
  }
}

Party.delete

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

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

Emits Party.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Party.

Returns

OutputTypeRequiredDescription
partyPartyrequiredThe Party.

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 $.Party.delete({ id: 'party_hmQWaPrAyZ' })"
  }
}