POST /revisions/:id/data/command (Command: post_session_thread_item)
Request Body
Response
Returns the persisted item with server-stampedid, created_at, user_id, and the original/derived
fields.
Errors
invalid_thread_envelope— the alias does not exist or itsvalue.typeis not"thread".thread_item_too_large— the serialized item exceeds the server-side size cap.invalid_request_body— a content block has an unknowntype, or afileblock omits one ofalias,name,content_type, orsize; both are rejected by request-schema validation before the command runs.invalid_thread_item_content— afileblock carries nofileobject at all, or itsaliasis outside the session-object alias grammar.too_many_files— the item contains more than 10filecontent blocks.file_not_found— afileblock references an alias that does not exist as a file object in the session.
Example
See also
- BlobHub Worker — thread items — how the worker
structures
contentandmetadatafor agent emissions, and the 60 KiB truncation behavior. - File session object — the object a
fileblock’saliasmust reference. - Upload Session File — the only way to create a
fileobject and obtain a validaliasfor it.

