Trigger job execution¶
Method¶
PUT https://papi.afi.ai/api/v1/tenants/{tenant_id}/jobs/{job_id}/trigger
Description¶
Triggers out-of-schedule job execution and spawns a task. Returns task ID as a result.
Path params¶
tenant_id
string
required
Tenant where the job belongs to. |
job_id
string
required
ID of the job to trigger. |
curl -X PUT \
-H 'Authorization: {api-key}' \
https://papi.afi.ai/api/v1/tenants/{tenant_id}/jobs/{job_id}/trigger
Successful response (200) schema¶
object |
task_id
string
ID of the task spawned by the job. Can be used to monitor its status later. |