Skip to main content

Resume Schedules in Bulk

Endpoint: PUT /api/scheduler/bulk/resume

Resumes one or more paused schedules in bulk.

Request body

Format the request body as an array of strings containing the schedule names. For example, ["schedule-name-1", "schedule-name-2"].

Response

ParameterDescription
bulkSuccessfulResultsNames of schedules that were successfully resumed.
bulkErrorResultsNames of schedules that failed to resume, with corresponding error messages.

Examples

Resume schedules in bulk

Request

curl -X 'PUT' \
'https://<YOUR-SERVER-URL>/api/scheduler/bulk/resume' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '[
"assignPRSchedule",
"AutomateEndpointMonitoring",
"emailNurturingAutomation",
"userCreated"
]
'

Response

{
"bulkErrorResults": {},
"bulkSuccessfulResults": [
"assignPRSchedule",
"AutomateEndpointMonitoring",
"emailNurturingAutomation",
"userCreated"
]
}
Resume schedules in bulk: partial failure

Request

curl -X 'PUT' \
'https://<YOUR-SERVER-URL>/api/scheduler/bulk/resume' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '[
"assignPRSchedule",
"AutomateEndpointMonitorings",
"emailNurturingAutomations",
"userCreated"
]
'

Response

{
"bulkErrorResults": {
"AutomateEndpointMonitorings": "Schedule 'AutomateEndpointMonitorings' not found",
"emailNurturingAutomations": "Schedule 'emailNurturingAutomations' not found"
},
"bulkSuccessfulResults": [
"assignPRSchedule",
"userCreated"
]
}