curl --request PUT \
--url http://{host}:{port}/{contextPath}/job/suspended \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jobDefinitionId": "aJobDefinitionId",
"suspended": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}Job
激活/挂起作业
Activates or suspends jobs matching the given criterion. This can only be on of:
jobDefinitionIdprocessDefinitionIdprocessInstanceIdprocessDefinitionKey
PUT
/
job
/
suspended
curl --request PUT \
--url http://{host}:{port}/{contextPath}/job/suspended \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jobDefinitionId": "aJobDefinitionId",
"suspended": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}Authorizations
Body
application/json
Defines by which selection criterion to activate or suspend jobs. This selection criterion are mutually exclusive and can only be on of:
jobDefinitionIdprocessDefinitionIdprocessInstanceIdprocessDefinitionKey
A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated.
Response
Request successful. This method returns no content.