Skip to main content
Cron Jobs

Pause a cron job for a server

Asynchronous Request

Pausing removes the cron entry from the live server crontab while keeping the cron job in Webdock metadata. Only one cron job mutation can run at a time per server; if another cron create/pause/unpause/delete operation is in progress, this request returns HTTP 400 until that operation completes.

POST
/servers/{serverSlug}/cronjobs/{cronjobId}/pause
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server where the cron job exists

cronjobIdintegerrequired

Cron job ID from Webdock metadata storage

Pause cron job request accepted

X-Callback-IDstringheader

CallbackID