Appearance
POST
/job/job-execution-exclusion/exclusionsRequired scope:
viskan:jobexecutionexclusion:createCreates a new job execution exclusion with optional intervals.
Request body
JSON
{
"name": "Christmas freeze",
"intervals": [
{
"startDateTime": "2026-12-24T00:00:00+01:00",
"endDateTime": "2026-12-26T23:59:59+01:00"
}
],
"jobs": {
"added": [
12345
],
"removed": [
12345
]
}
}
Response
The exclusion was created successfully.
JSON
{
"id": 1
}
| Error code | Description |
|---|---|
exclusion-name-cannot-be-blank | The exclusion name cannot be blank. |
interval-end-before-start | The end date of an interval cannot be before its start date. |