Skip to content

Document commands: update, delete

The Document Verbs update, delete as CLI commands, with inputs, result, refusals and an example.

Reference for Document, one group of Document commands.

Document.update

Changes the given properties of a Document. Verb page.

Text
npx startup-builder do Document.update --json '<input>' [--try | --send | --do]

Emits Document.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Document.
formstringOne of document, deck, or sheet.

Returns

OutputTypeRequiredDescription
documentDocumentrequiredThe Document.

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

Terminal
npx startup-builder do Document.update --json '{"id":"document_af2wijcmRy","form":"document"}'

Document.delete

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

Text
npx startup-builder do Document.delete --json '<input>' [--try | --send | --do]

Emits Document.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Document.

Returns

OutputTypeRequiredDescription
documentDocumentrequiredThe Document.

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

Terminal
npx startup-builder do Document.delete --json '{"id":"document_af2wijcmRy"}'