Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Cancel job

Cancels the job. If the job is already cancelled or failed, the method will do nothing.

PUT/rest/api/backup-restore/jobs/{jobId}/cancel
Path parameters
jobIdstringrequired

id of the backup/restore job

Responses
200

Returns a JSON representation of the cancelled job.

idinteger<int64>
jobOperationstring
Allowed:BACKUPRESTORE
jobScopestring
Allowed:SPACESITE
jobStatestring
Allowed:QUEUEDPROCESSINGCOMPLETINGFINISHEDCANCELLINGCANCELLEDFAILED
createTimestring<date-time>
startProcessingTimestring<date-time>
finishProcessingTimestring<date-time>
cancelTimestring<date-time>
errorMessagestring
ownerstring
cancelledBystring
fileNamestring
spaceKeysstring
fileDeleteTimestring<date-time>
fileExistsboolean
404

Returned if job not found or user doesn't have permission to cancel it

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X PUT 'http://example.com:7990/confluence/rest/api/backup-restore/jobs/string/cancel' \
  -H 'Accept: application/json'
Response
{
  "id": 1,
  "jobOperation": "BACKUP",
  "jobScope": "SITE",
  "jobState": "IN_PROGRESS",
  "createTime": "2020-01-01T01:01:01Z",
  "startProcessingTime": "2020-01-01T01:01:01Z",
  "finishProcessingTime": "2020-01-01T01:01:01Z",
  "cancelTime": "2020-01-01T01:01:01Z",
  "errorMessage": "Error message",
  "owner": "admin",
  "cancelledBy": "admin",
  "fileName": "backup-2020-01-01.zip",
  "spaceKeys": "spaceKey1,spaceKey2",
  "fileDeleteTime": "2020-01-01T01:01:01Z",
  "fileExists": true
}

Was this page helpful?