manageJobs

Click to copy

Manage one or more jobs

Manage one or more jobs with specified jobIds. Valid enum values for manage are Upgrade, Close, Reopen, and Delete.

Upgrade
Upgrade will upgrade the existing job(s) to the latest active diagram version. The jobUpgrade privilege is required to upgrade a job. A job will not be upgraded if:

  • You have insufficient privileges
  • The job is closed
  • The job is currently running
  • The current step on the job does not exist on the diagram

Close
Close will close open job(s). The jobClose privilege is required to close a job. A job will not be closed if:

  • You have insufficient privileges
  • The job is currently running

Reopen
Reopen will reopen one or more jobs. The jobReopenClosed privilege is required to reopen a job. A job will not be reopened if:

  • You have insufficient privileges
  • The job is currently open

Delete
Delete one or more jobs. The attachments, extended properties and locations associated with the job are also deleted. The jobDelete privilege is required to delete a job. A job will not be deleted if:

  • You have insufficient privileges
  • The job is currently running

Body parameter

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "type": "Close",
  "jobIds": [
    "string"
  ]
}

Query parameters

NameTypeRequired

token

string

Path parameters

NameTypeRequired

orgId

string

itemId

string

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobs/manage \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Response

200 Response

Use dark colors for code blocksCopy
1
2
3
{
  "success": true
}
StatusMeaningDescriptionSchema

200

OK

success

Success

400

Bad Request

error

WorkflowJsonExceptionDTO

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.