Trigger Run from Job template
Creates a new job run using the configuration stored in the specified job template. Optional run properties can be overridden for this execution.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
projectCode | string | Yes | Project Code found under Auth properties of ACCELQ User Profile |
templateJobId | number | Yes | Job Id of the template job to be executed. |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Request Body
json
{
"runProperties": {
"totalTickets": "10",
"maxPrice": "4000"
}
}
Responses
200 - Template Job triggered
json
{
"jobPid": 89,
"templateJobPid": 77,
"message": "Job run successfully created using the provided template job ID."
}
404 - Template job not found.
json
{
"error": "Template job with pid : 31 does not exist in the project."
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X POST "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/test-exec/jobs/templates/${{templateJobId}}/run" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"runProperties": {
"totalTickets": "10",
"maxPrice": "4000"
}
}'