Cancel a Job
POST/pcm/jobs/:jobID/cancel
The jobs endpoints display the status of a number of endpoints that function as jobs, for example, product import and export, and duplicating hierarchies.
Jobs are processed one at a time. You can continue to send job requests, but those jobs are queued. In other words, Commerce looks for any jobs that have a status of PENDING and starts the job with the earliest created date. If you decide that a specific job needs to be prioritized over another, you can cancel the less critical job using the Cancel a job
endpoint. You can only cancel jobs whose status is PENDING.
Request
Responses
- 200
- 400
- 404
- 422
- 500
Successfully cancelled job
Bad request. The request failed validation.
Bad Request. Not Found.
Bad request. The request failed validation.
Internal server error. There was a system failure in the platform.