Skip to main content
Upload an object to the session storage.

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

Request Body

The alias must conform to the session-object alias grammar: one or more /-separated segments of AZ, az, 09, ., _, -, @; 1–256 characters total; no segment may be . or ... An alias outside the grammar returns 400 invalid_session_object_alias. A successful upload fires a session_object_modified session event.

Response

Returns {"status": "success"} — no body beyond the status.
When value.type is "thread", this command creates or updates the thread envelope only. Items are appended via post_session_thread_item. Deleting the envelope cascades and removes all items.
When value.type is "graph", this command creates or updates the graph envelope only. Elements (vertices and edges) are managed via the six graph commands. Deleting the envelope cascades and removes all elements. See the graph session object for the envelope and element schema.

Example

See also