Skip to main content
PUT
Replace the complete Agent rule order

Authorizations

Authorization
string
header
required

A Contact Button scoped bearer key. Send Authorization: Bearer <token>. Token abilities are enforced independently of workspace membership; both checks must pass. REST requires a Sanctum API key. Separately, interactive MCP clients can use registered OAuth applications with PKCE and audience-bound workspace grants; those tokens are not REST credentials.

Headers

Idempotency-Key
string

Optional 8–120 character key for replayable mutations. Send the exact same method, URI, and body on retries; receipts expire after 24 hours.

Required string length: 8 - 120

Path Parameters

workspace
string<uuid>
required
agent
string<uuid>
required

Body

application/json
version
integer
required

Current rule-set version returned by the latest read. A stale version returns HTTP 409.

Required range: x >= 0
rule_ids
string<uuid>[]
required

Every current rule public ID exactly once, in the desired priority order.

Maximum array length: 50

Response

Successful data envelope.

data
any
required
meta
object
required