Skip to main content
Append an item to a thread session object.

POST /revisions/:id/data/command (Command: post_session_thread_item)

Request Body

Response

Returns the persisted item with server-stamped id, created_at, user_id, and the original/derived fields.

Errors

  • invalid_thread_envelope — the alias does not exist or its value.type is not "thread".
  • thread_item_too_large — the serialized item exceeds the server-side size cap.
  • invalid_request_body — a content block has an unknown type, or a file block omits one of alias, name, content_type, or size; both are rejected by request-schema validation before the command runs.
  • invalid_thread_item_content — a file block carries no file object at all, or its alias is outside the session-object alias grammar.
  • too_many_files — the item contains more than 10 file content blocks.
  • file_not_found — a file block references an alias that does not exist as a file object in the session.

Example

See also