Skip to content

Comment programs: update, delete

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

Reference for Comment, one group of Comment programs.

Comment.update

Changes the given properties of a Comment. Verb page.

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

Emits Comment.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Comment.
bodytextWhat it says.

Returns

OutputTypeRequiredDescription
commentCommentrequiredThe Comment.

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 $.Comment.update({ id: 'comment_MUIgpgdysq', body: 'Example body' })"
  }
}

Comment.delete

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

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

Emits Comment.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Comment.

Returns

OutputTypeRequiredDescription
commentCommentrequiredThe Comment.

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