Records a person's approval of the setup command text whose SHA-256 is posted, and refuses with 409 when the stored text no longer has that hash.
POST
/v1/m/sessions/workspaces/{ref}/setup-command/approve
const url = 'https://example.com/v1/m/sessions/workspaces/example/setup-command/approve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sha256":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/m/sessions/workspaces/example/setup-command/approve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sha256": "example" }'Records a person’s approval of the setup command text whose SHA-256 is posted, and refuses with 409 when the stored text no longer has that hash.
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
sha256
required
SHA-256 of the exact command text reviewed. Refused with 409 if the stored text has changed.
string
Example generated
{ "sha256": "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
{}The setup command changed or is empty; review its current text and hash
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}