Create site restore job for upload backup file
This resource expects a multipart post. The media-type multipart/form-data is defined in RFC 1867.
Most client libraries have classes that make dealing with multipart posts simple.
For instance, in Java the Apache HTTP Components library provides a MultiPartEntity that makes it simple to submit a multipart POST.
In order to protect against XSRF attacks, because this method accepts multipart/form-data, it has XSRF protection on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be blocked.
The name of the multipart/form-data parameter that contains attachments must be “file”.
An example to attach the file:
curl -D- -u admin:admin -X POST -H “X-Atlassian-Token: nocheck” -F file=@myfile.zip http://myhost/rest/api/backup-restore/restore/space/upload
.
/rest/api/backup-restore/restore/site/uploadmultipart/form-dataBackup file to be uploaded. Has to be a zip file.
filestringbackup file uploaded. Has to be a zip file.
Returns a JSON representation of the site restore job details.
idinteger<int64>jobOperationstringBACKUPRESTOREjobScopestringSPACESITEjobStatestringQUEUEDPROCESSINGCOMPLETINGFINISHEDCANCELLINGCANCELLEDFAILEDcreateTimestring<date-time>startProcessingTimestring<date-time>finishProcessingTimestring<date-time>cancelTimestring<date-time>errorMessagestringownerstringcancelledBystringfileNamestringspaceKeysstringfileDeleteTimestring<date-time>fileExistsbooleanjobSettingsSiteRestoreSettingsShow propertiesHide properties
skipReindexbooleanfileNamestringstatisticsJobStatisticsShow propertiesHide properties
totalObjectsCountinteger<int64>processedObjectsCountinteger<int64>persistedObjectsCountinteger<int64>skippedObjectsCountinteger<int64>reusedObjectsCountinteger<int64>jobStatisticsJobStatisticsShow propertiesHide properties
totalObjectsCountinteger<int64>processedObjectsCountinteger<int64>persistedObjectsCountinteger<int64>skippedObjectsCountinteger<int64>reusedObjectsCountinteger<int64>Returned if the uploaded file is not a zip file
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstringReturned if user doesn't have permission to restore space
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring