Change a policy (owners only)
PUT
/policies/{policy_id}
const url = 'https://api.global.stillbox.example/v1/policies/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","team_id":"example","source":"example","enabled":true}'};
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://api.global.stillbox.example/v1/policies/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "team_id": "example", "source": "example", "enabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”policy_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
description
string
team_id
string
source
required
string
enabled
Defaults to true.
boolean
Example generated
{ "name": "example", "description": "example", "team_id": "example", "source": "example", "enabled": true}Responses
Section titled “Responses”The policy
Media typeapplication/json
object
id
required
string
name
required
string
description
required
string
team_id
Only this team’s sandboxes; absent for the whole organization.
string
source
required
Cedar forbid rules
string
enabled
required
boolean
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example generated
{ "id": "example", "name": "example", "description": "example", "team_id": "example", "source": "example", "enabled": true, "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z"}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The change would leave the organization without an owner (last_owner), its seats are full (member_limit), or
the person is already a member (already_member)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}