Comment commands: update, delete
The Comment Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Comment, one group of Comment commands.
Comment.update
Changes the given properties of a Comment. Verb page.
npx startup-builder do Comment.update --json '<input>' [--try | --send | --do]Emits Comment.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Comment. |
body | text | What it says. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
comment | Comment | required | The Comment. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
npx startup-builder do Comment.update --json '{"id": "comment_MUIgpgdysq", "body": "Example body"}'Comment.delete
Deletes a Comment: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Comment.delete --json '<input>' [--try | --send | --do]Emits Comment.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Comment. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
comment | Comment | required | The Comment. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
npx startup-builder do Comment.delete --json '{"id": "comment_MUIgpgdysq"}'