Set Job Retries By Job Definition Id
Sets the number of retries of all failed jobs associated with the given job definition id.
Method
PUT /job-definition/{id}/retries
Parameters
Path Parameters
| Name | Description |
|---|---|
| id | The id of the job definition 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. | |
| 500 | application/json | The retries could not be set successfully. See the Introduction for the error response format. |
Example
Request
PUT /job-definition/aJobDefId/retries
Request Body:
{"retries": 3}
Response
Status 204. No content.