Cancel a Brand job
Stop a Brand job. Items already finished stay readable for 24 hours; items not started are dropped.
POSThttps://rankfield.dev/v1/brand/jobs/{id}/cancel
Parameters
Headers
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Authorization | string | Yes | – | Bearer followed by your API key. See Authentication. |
Path parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | – | The job id from Start a Brand job. |
Response
The job, now canceled, as in Get a Brand job. Items already running finish; nothing new starts. A job that has already finished is returned unchanged (its status stays done).
Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | No valid API key. |
| 404 | No job with this id for this key, or it has expired. This answer has no code: {"error":{"message":"Not found"}}. |