DELETE /scheduled_jobs/<job-id> (deprecated)

Prior to deprecation, this endpoint deleted scheduled jobs.

This endpoint is deprecated. Instead, use PUT /scheduled_jobs/environment_jobs/<job-id>. Tools using this deprecated endpoint must be upgraded to use the new endpoint.

While you can manually re-enable this endpoint, this is not recommended because this endpoint can't find jobs to delete. If you need to re-enable this endpoint, insert the following code in orchestrator.conf:

{
  orchestrator: {
    scheduled-jobs-v1-api: true;
  }
}

This also re-enables GET /scheduled_jobs (deprecated).

Request format

Prior to deprecation, when Forming orchestrator API requests to this endpoint, the URI path must have included the ID of the scheduled job you wanted to delete. For example, this request deleted a scheduled job with ID 81:

auth_header="X-Authentication: $(puppet-access show)"
uri="https://$(puppet config print server):8143/orchestrator/v1/scheduled_jobs/81"

curl --insecure --header "$auth_header" -X DELETE "$uri"

Response format

Because this endpoint is deprecated, the response is always 204 No Content.