Activate/Suspend Jobs By Process Definition Key
Activates or suspends jobs with the given process definition key.
Method
PUT /job/suspended
Parameters
Request Body
A JSON object with the following properties:
| Name | Description | 
|---|---|
| processDefinitionKey | The process definition key of the jobs to activate or suspend. | 
| processDefinitionTenantId | Only activate or suspend jobs of a process definition which belongs to a tenant with the given id. | 
| processDefinitionWithoutTenantId | Only activate or suspend jobs of a process definition which belongs to no tenant. Value may only be true, asfalseis the default behavior. | 
| suspended | A Booleanvalue which indicates whether to activate or suspend all jobs with the given process definition key. When the value is set totrue, all jobs with the given process definition key will be suspended and when the value is set tofalse, all jobs with the given process definition key will be activated. | 
Result
This method returns no content.
Response Codes
| Code | Media type | Description | 
|---|---|---|
| 204 | Request successful. | |
| 400 | application/json | Returned if some of the request parameters are invalid, for example if the processDefinitionKeyparameter is null. See the Introduction for the error response format. | 
Example
Request
PUT /job/suspended
{
  "processDefinitionKey" : "aProcessDefinitionKey",
  "suspended" : true
}
Response
Status 204. No content.