Request

Creates a job type.

Security
OAuth2.0
Body

The request containing the details of the job type to create.

namestring or null
descriptionstring or null
optionsobject(TaskTypeOptions)
stepsArray of objects or null(JobStep)
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"
      }
    ]
  }'

Responses

Successful creation

Bodyapplication/json
idstring or nullrequired
namestring or nullrequired
systemobject(SystemResource)required
descriptionstring or null
optionsobject(TaskTypeOptions)
stepsArray of objects or null(JobStep)
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" } }