Create new job for applicable drivers and vehicles
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Body Params application/json
Name of the job that uniquely identifies the job
>= 1 characters<= 100 characters
Detailed description of the job
>= 0 characters<= 4000 characters
>= 0 characters<= 2000 characters
Period start date in format yyyy-mm-dd
Period end date in format yyyy-mm-dd
List of driver IDs applicable for this job
List of device IDs applicable for this job
Additional notes for the job
{
"name": "string",
"description": "string",
"location": "string",
"effectiveDateRange": {
"startDate": "2019-08-24",
"endDate": "2019-08-24"
},
"drivers": [
"string"
],
"devices": [
"string"
],
"customerInfo": {
"name": "string",
"email": "string",
"phone": "string"
},
"reportRequired": true,
"signatureRequired": true,
"photoRequired": true,
"notes": "string"
}
Request samples
curl --location --request POST '/jobs' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"name": "string",
"description": "string",
"location": "string",
"effectiveDateRange": {
"startDate": "2019-08-24",
"endDate": "2019-08-24"
},
"drivers": [
"string"
],
"devices": [
"string"
],
"customerInfo": {
"name": "string",
"email": "string",
"phone": "string"
},
"reportRequired": true,
"signatureRequired": true,
"photoRequired": true,
"notes": "string"
}'
Responses
response status (http status)
ID of the newly created job
{
"status": 0,
"data": 0
}
Modified at 2025-02-28 08:12:14