ServicesTasksHTTP APITriggers

Run trigger

POST
/api/tasks/projects/{project_id}/task-triggers/{trigger_id}/run

Run trigger.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

project_id*string
trigger_id*string
Formatuuid

Request Body

application/json
  1. body
requestId*string
Formatuuid

Response Body

Success

application/json
  1. response
createdAtMicros*|
invocationId*string
Formatuuid
occurrence*||
status*tasks.InvocationStatus
Value in"accepted""skipped"
taskId?|null
triggerId*string
Formatuuid
triggerRevision*|
curl -X POST 'https://api.spiraldb.dev/api/tasks/projects/string/task-triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/run' \  -H 'Content-Type: application/json' \  -d '{  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6"}'
{  "createdAtMicros": "string",  "invocationId": "e9725468-0858-4dbb-af72-1e49c8254d68",  "occurrence": {    "journalEvent": {      "branchId": "712f308d-801e-48bc-b072-9c404734ceb7",      "commitId": "a1b223ee-0195-4e35-9b2a-72c93f345117",      "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",      "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6"    },    "type": "journalEvent"  },  "status": "accepted",  "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",  "triggerId": "b89c9c0a-30c6-475a-b185-93813e22ffcf",  "triggerRevision": "string"}