POST /revisions/:id/data/command (Command: upload_session_object)
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
engine | string | Yes | Must be workflow_blobhub. |
command | string | Yes | Must be upload_session_object. |
session_id | string | Yes | The ID of the session. |
alias | string | Yes | Unique alias for the object. |
value | object | Yes | The JSON object to store. |
Response
Returns an empty JSON object upon success.Whenvalue.typeis"thread", this command creates or updates the thread envelope only. Items are appended viapost_session_thread_item. Deleting the envelope cascades and removes all items.
Whenvalue.typeis"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
- BlobHub Worker — thread handoff — set
workspace.agent_type,workspace.work_folder, andagent.state = "pending"on a thread envelope to hand it off to a BlobHub Worker. - BlobHub Worker — the
workersession object — the worker uploads aworker-aliased session object as its per-session affinity lock and activity log.

