Trigger workflow
Changed onTrigger a workflow (specified by the key) to run for the given recipients, using the parameters provided. Returns an identifier for the workflow run request. All workflow runs are executed asynchronously. This endpoint also handles inline identifications for the actor, recipient, and tenant fields.
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/workflows/{key}/trigger
- Auth: HTTP bearer
Path parameters
Key of the workflow to trigger.
Request body
Example request
{
"actor": "mr_dna",
"cancellation_key": "isla_nublar_incident_1993",
"data": {
"affected_areas": [
"visitor_center",
"raptor_pen",
"trex_paddock"
],
"attraction_id": "paddock_rex_01",
"evacuation_protocol": "active",
"message": "Life finds a way",
"severity": "critical",
"system_status": "fences_failing"
},
"recipients": [
"dr_grant",
"dr_sattler",
"dr_malcolm"
],
"settings": {
"sandbox_mode": true,
"skip_delay": true
},
"tenant": "ingen_isla_nublar"
}Response
OK
Example response
{
"workflow_run_id": "123e4567-e89b-12d3-a456-426614174000"
}Changes
- info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
//////////
- info
- breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist
- breaking