Skip to content
MCPProductBuild and shipMapping

Mapping programs: update, delete

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

Reference for Mapping, one group of Mapping programs.

Mapping.update

Changes the given properties of a Mapping. Verb page.

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

Emits Mapping.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Mapping.
verbstringThe Verb it serves, such as Meeting.book; a Verb has many Mappings, ranked.
fieldsjsonEach outside field or event and the Noun property or Event it maps to.
directionstringboth still keeps db.sb the record; the outside tool never becomes a second one.
converttextHow a value changes on the way, such as cents to money or a picklist to closed values.
rankintegerOrder tried when the preferred Mapping fails or finds nothing; the Policy orders it by cost per accepted result.
preferredbooleanTrue for the Mapping a Verb tries first.
doorstringHow the outside endpoint is classed; an unclassed write is one-way and waits its delay window.

Returns

OutputTypeRequiredDescription
mappingMappingrequiredThe Mapping.

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 $.Mapping.update({ id: 'mapping_WOromrQi6J', verb: 'Meeting.book' })"
  }
}

Mapping.delete

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

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

Emits Mapping.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Mapping.

Returns

OutputTypeRequiredDescription
mappingMappingrequiredThe Mapping.

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