post
/v1/backups/{backup_id}/restoreRestore backup
Restore a backup to a new or existing volume
Path Parameters
backup_id
string<uuid>requiredpath
Backup ID
Example: "550e8400-e29b-41d4-a716-446655440000"
Request Body
optionalContent-Type: application/json
volume_id
string<uuid>optionalExisting volume to restore to (creates new volume if omitted)
name
stringoptionalName for new volume (if not restoring to existing)
Responses
202
Restore initiated
Content-Type: application/json
volume_id
string<uuid>optionalID of the volume being restored to
400
Invalid request parameters
Content-Type: application/json
error
objectrequired401
Authentication required or token invalid
Content-Type: application/json
error
objectrequired404
Resource not found
Content-Type: application/json
error
objectrequired409
Backup is not in restorable state
Content-Type: application/json
error
objectrequired500
Internal server error
Content-Type: application/json
error
objectrequiredcurl -X POST "https://api.spo1.mycloud.com/v1/backups/550e8400-e29b-41d4-a716-446655440000/restore" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \-H "Content-Type: application/json" \-d '{"volume_id": "550e8400-e29b-41d4-a716-446655440000","name": "string"}'