Creates a job type.
Security
OAuth2.0
- https://edge-platform.sitecorecloud.io/cshttps://edge-platform.sitecorecloud.io/cs/api/v2/cm/job-types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json-patch+json
- application/json
- text/json
- application/*+json
curl -i -X POST \
https://edge-platform.sitecorecloud.io/cs/api/v2/cm/job-types \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"name": "string",
"description": "string",
"options": {
"canBeStopped": true,
"canCallback": true
},
"steps": [
{
"name": "string",
"description": "string",
"taskTypeId": "string",
"taskId": "string",
"executionMode": "Strict"
}
]
}'Response
{ "id": "string", "name": "string", "description": "string", "options": { "canBeStopped": true, "canCallback": true }, "steps": [ { … } ], "system": { "type": "string", "hash": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "updatedAt": "2019-08-24T14:15:22Z", "updatedBy": "string" } }