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

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

Request Body

ParameterTypeRequiredDescription
enginestringYesMust be workflow_blobhub.
commandstringYesMust be upload_session_object.
session_idstringYesThe ID of the session.
aliasstringYesUnique alias for the object.
valueobjectYesThe JSON object to store.

Response

Returns an empty JSON object upon success.
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

{
  "engine": "workflow_blobhub",
  "command": "upload_session_object",
  "session_id": "sess_001",
  "alias": "config",
  "value": { "debug": true }
}
{}

See also