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
const url = 'https://example.com/v1/m/sessions/workspaces/example/setup-command';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"command":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” ref
required
string
Path parameter ref.
Header Parameters
Section titled “ Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ” 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
Example generated
{ "command": "example"}Responses
Section titled “ Responses ”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
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
{}