DELETE Job - TextKing/textking-api GitHub Wiki
Request: DELETE /project/{projectId}/job/{jobId}
Deletes an existing job with the given ID. Jobs can only be deleted, when the corresponding project’s state is prepared.
| Header | Description |
|---|---|
| Authorization | oAuth 2 authentication header |
| HTTP status | Description |
|---|---|
| 204 Not Content | The job was successfully deleted. The response does not contain a body. |
| 400 Bad Request | Either the job ID or the project ID is not a valid UUID. |
| 403 Forbidden | You are not allowed to delete the job, e.g. when the corresponding project’s state is not prepared. |
| 404 Not Found | The job or project with the given ID does not exist. |
Delete the job with the ID be2bdb76-afe4-4291-bb33-5f3e4019a05e:
DELETE /v1/project/bc141454-5949-401b-9c05-7591ee2f5624/job/be2bdb76-afe4-4291-bb33-5f3e4019a05e HTTP/1.1 Host: api.textking.com Authorization: Bearer youraccesstoken
Response:
HTTP/1.1 204 No Content