Restore space
The restore space operation is used to restore a deleted space within 30 days of its deletion. When a space is restored, all the resources under the space will be restored in their original hierarchy. This operation requires the identifier of the deleted space. Please note that spaces will be restored to the original CDH account and only soft deleted spaces can be restored.
The restore operation will immediately restore the explicitly specified space and it’s root folder. Any resources nested under the restored space or folder will be restored through an asynchronous process. The job ID for this asynchronous process can be found in the Location response header. By using this job ID with the Get Jobs API, users can monitor the progress of the restoration.
Prerequisites
Section titled “Prerequisites”- A space should be in soft deleted state. To know more about deleting a space refer here
Request
Section titled “Request”POST {baseUrl}/spaces/{spaceId}/restore-
HEADER:
- Authorization:
Bearer {tid token}
- Authorization:
Response
Section titled “Response”Response Headers:
Location: /jobs/d5fdc7b4-5ddd-44f0-8129-7596895c6fa6To know more about the restore space API refer here.