Activates or suspends jobs with the given job definition id.

Method

PUT /job/suspended

Parameters

Request Body

A JSON object with the following properties:

Name Description
jobDefinitionId The job definition id of the jobs to activate or suspend.
suspended A Boolean value which indicates whether to activate or suspend all jobs with the given job definition id. When the value is set to true, all jobs with the given job definition id will be suspended and when the value is set to false, all jobs with the given job definition id 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 jobDefinitionId parameter is null. See the Introduction for the error response format.

Example

Request

PUT /job/suspended

  1. {
  2. "jobDefinitionId" : "aJobDefinitionId",
  3. "suspended" : true
  4. }

Response

Status 204. No content.

原文: https://docs.camunda.org/manual/7.9/reference/rest/job/put-activate-suspend-by-job-def-id/