Skip to content

Contact programs: update, delete

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

Reference for Contact, one group of Contact programs.

Contact.update

Changes the given properties of a Contact. Verb page.

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

Emits Contact.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Contact.
emailemailThe primary email address.
phonestringThe primary phone number.
namestringThe name the Contact goes by.

Returns

OutputTypeRequiredDescription
contactContactrequiredThe Contact.

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 $.Contact.update({ id: 'contact_WsrosCQi6J', email: 'dana@leaseline.app' })"
  }
}

Contact.delete

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

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

Emits Contact.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Contact.

Returns

OutputTypeRequiredDescription
contactContactrequiredThe Contact.

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