Skip to content

Person programs: update, delete

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

Reference for Person, one group of Person programs.

Person.update

Changes the given properties of a Person. Verb page.

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

Emits Person.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Person.
namestringThe legal or personal name.
verifiedbooleanTrue once the identity is verified.

Returns

OutputTypeRequiredDescription
personPersonrequiredThe Person.

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 $.Person.update({ id: 'person_sLqbXbW683', verified: true })"
  }
}

Person.delete

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

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

Emits Person.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Person.

Returns

OutputTypeRequiredDescription
personPersonrequiredThe Person.

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