Skip to main content
PUT
Set a project's storage rules

Path Parameters

project_id
string
required

Project id (UUID) belonging to the caller workspace.

Body

application/json
revision
integer
required

The revision you read; 0 when the project has no rules yet.

Required range: x >= 0
applies_to
enum<string>

Who the rules bind. Omitted: unchanged (agents for new rules). People in the console are exempt under agents.

Available options:
agents,
everyone
rules
object

Version 1 of a project's rules for what agents may store (#689). Every key is optional; a missing key means the system limit applies.

Response

The rules as saved

project_id
string
applies_to
enum<string>
Available options:
agents,
everyone
rules
object

Version 1 of a project's rules for what agents may store (#689). Every key is optional; a missing key means the system limit applies.

effective
object

Every rule in force: the rules with unset keys filled from the system limits.

revision
integer

0 when the project has no rules.

Required range: x >= 0
updated_by
string | null
updated_at
string<date-time> | null