Skip to main content
PATCH
Edit, pause or resume a WebSocket trigger

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

project_id
string
required
ws_trigger_id
string
required

Body

application/json
name
string
Required string length: 1 - 80
enabled
boolean

true arms the listener socket; false tears it down.

url
string

Must start with ws:// or wss://. To a different host, send headers and connect_message too when the trigger has them stored.

headers
object

Connection headers. Encrypted; never returned.

subprotocols
string[]
connect_message
string | null

Sent once on connect (e.g. a subscribe frame).

conditions
object[]

Frame filter; an empty array matches every frame. Validated on save (#165) and stored in the full {path, op, value} form.

dataset
string | null

null or empty routes each frame by the project's rules. Validated as a dataset name.

Response

Updated. The listener is reconnected, stopped or armed to match. The trigger as stored now, never its connection settings.

ok
enum<boolean>
required
Available options:
true
ws_trigger
object
required