Activate/Suspend Job By Id
Activates or suspends a given job by id.
Method
PUT /job/{id}/suspended
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the job to activate or suspend. |
Request Body
A JSON object with the following properties:
Name | Description |
---|---|
suspended | A Boolean value which indicates whether to activate or suspend a given job. When the value is set to true , the given job will be suspended and when the value is set to false , the given job will be activated. |
Result
This method returns no content.
Response Codes
Code | Media type | Description |
---|---|---|
204 | Request successful. |
Example
Request
PUT /job/aJobId/suspended
{
"suspended" : true
}
Response
Status 204. No content.