Skip to content

Activate a rule​

POST
/triggers/{id}/resume

May activate paused or error rules. Exec requires an allowed caller Key ID, which replaces the stored authorization binding even for an already active rule. A changed binding increments revision. Does not replay cancelled events or reset cooldown. Reactivation resets source state and activation time so previous conditions do not act as new threshold crossings.

Authorizations​

APIKey

Remote cp-auth key with automation scope; never pass it in the URL. /healthz and CORS preflight are anonymous.

Type
API Key (header: CP-X-API-KEY)

Responses​

Success

application/json
JSON
{
  
"source": {
  
  
"type": "price",
  
  
"config": {
  
  
  
"symbol": "string",
  
  
  
"operator": "string",
  
  
  
"threshold": "string",
  
  
  
"currency": "USD"
  
  
}
  
},
  
"queries": [
  
  
{
  
  
  
"id": "string",
  
  
  
"type": "price",
  
  
  
"config": {
  
  
  
  
"symbol": "string",
  
  
  
  
"currency": "USD"
  
  
  
}
  
  
}
  
],
  
"filters": null,
  
"cooldown_minutes": 0,
  
"note": "",
  
"id": "string",
  
"revision": 0,
  
"status": "string",
  
"last_fired_at": "string",
  
"created_at": "string",
  
"updated_at": "string",
  
"actions": [
  
  
{
  
  
  
"type": "webhook",
  
  
  
"config": {
  
  
  
  
"url": "string"
  
  
  
}
  
  
}
  
]
}

Playground​

Authorization

Samples​