Create Job Execution API
Use this API to trigger a job in a Flightcontrol managed scheduler service.
API Description
Method | Path |
---|---|
POST | /v1/services/{serviceId}/job/{jobGivenId}/execution |
Headers | |
---|---|
Authorization | Bearer: [API key] |
Parameters | ||
---|---|---|
Parameter | Type | Description |
serviceId | string | The service unique id. |
jobGivenId | string | The job given id. |
Full Endpoint URL https://api.flightcontrol.dev/v1/services/{serviceGivenId}/job/{jobGivenId}/trigger
Body | |||
---|---|---|---|
Parameter | Required | Type | Description |
startCommand | Optional | string or string[] | The job’s configured startCommand will be used if not provided. |
Response Example
{
"jobExecutionId": "cl2kx7acm00003f6gobvidq2i"
}
The response will contain the jobExecutionId
which is the id of the triggered job execution.
Response Conditions
Success
Errors