Skip to main content
PATCH
Enable or disable 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
enabled
boolean
required

true arms the listener socket; false tears it down.

Response

Updated; the WsListener DO is armed or stopped to match.

ok
enum<boolean>
required
Available options:
true