Skip to main content
PATCH
Edit or pause a grouping rule

Authorizations

x-chatobserver-key
string
header
required

A workspace API key. Data endpoints require a service-account key with the specified scopes.

Headers

Idempotency-Key
string

MCP requires this header. Reuse unchanged for retries; writes and receipts commit atomically.

Maximum string length: 255

Path Parameters

ruleId
integer
required
Required range: x >= 1

Body

application/json
expectedVersion
integer
required
groupId
integer
conditionType
enum<string>
Available options:
contains_any,
contains_all,
regex
conditionPayload
object
applyOn
enum<string>[]
Required array length: 1 - 3 elements
Available options:
prompt_create,
prompt_update,
backfill
name
string
Required string length: 1 - 150
status
enum<string>
default:draft
Available options:
draft,
active,
paused
priority
integer
Required range: 0 <= x <= 10000
previewFingerprint
string
Pattern: ^[a-f0-9]{64}$

Response

Successful operation.

data
object
required