Skip to content

Stores the exact setup command text of one folder, or clears it when the text is empty.

PUT
/v1/m/sessions/workspaces/{ref}/setup-command
curl --request PUT \
--url https://example.com/v1/m/sessions/workspaces/example/setup-command \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "command": "example" }'

Stores the exact setup command text of one folder, or clears it when the text is empty.

ref
required
string

Path parameter ref.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
command
required

Exact setup command text, at most 8192 UTF-8 bytes without NUL; empty clears it. Stored only, never executed by this operation.

string
<= 8192 characters
Example generated
{
"command": "example"
}

Registered folder, exact setup text, last approval as evidence, and setup_approved, true only while that approval covers the current text

Media type application/json
object
setup_approval
object
actor
required
string
at
required
string format: date-time
sha256
required
string
/^[0-9a-f]{64}$/
setup_approved
boolean
setup_command
string
setup_command_sha256
string
Example generated
{
"setup_approval": {
"actor": "example",
"at": "2026-04-15T12:00:00Z",
"sha256": "example"
},
"setup_approved": true,
"setup_command": "example",
"setup_command_sha256": "example"
}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}