Set Job Retries
Sets the retries of the job to the given number of retries by id.
Method
PUT /job/{id}/retries
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the job to be updated. |
Request Body
A JSON object with the following properties:
Name | Description |
---|---|
retries | The number of retries to set that a job has left. |
Result
This method returns no content.
Response Codes
Code | Media type | Description |
---|---|---|
204 | Request successful. | |
404 | application/json | Job with given id does not exist. See the Introduction for the error response format. |
500 | application/json | The retries could not be set successfully. See the Introduction for the error response format. |
Example
Request
PUT /job/aJobId/retries
Request Body:
{"retries": 3}
Response
Status 204. No content.