Skip to main content
PUT
triggers.update(id, spec): replaces the name, verification, dedupe, and rules

Authorizations

Authorization
string
header
required

An API key, or a session token on its own session

Path Parameters

id
string
required

The trigger's ID

Pattern: ^trg_[0-7][0-9a-hjkmnp-tv-z]{25}$

Body

application/json

Replaces the name, the verification, the dedupe expression, and the rules.

name
string
required
verification
object | null
dedupe
string | null
rules
object[]

Response

The trigger

id
string
required
Pattern: ^trg_[0-7][0-9a-hjkmnp-tv-z]{25}$
name
string
required
verification
object | null
required

HMAC-SHA256 of the raw body with the trigger's secret, as lowercase hex after prefix, in header.

dedupe
string | null
required

CEL yielding a string; null: the body's SHA-256.

rules
object[]
required
createdAt
string<date-time>
required

RFC 3339 in UTC with milliseconds.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
updatedAt
string<date-time>
required

RFC 3339 in UTC with milliseconds.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$