A valid request URL is required to generate request examples
{ "status": "<string>", "code": 123 }
Restore a specific backup from an environment using the id of the entry retrieved by the Get backups list endpoint.
id
cURL
curl --request POST \ --url {schemes}://api.upsun.com/projects/{projectId}/environments/{environmentId}/backups/{backupId}/restore \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "environment_name": "<string>", "branch_from": "<string>", "restore_code": true, "restore_resources": true, "resources": { "init": "backup" } } '
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Whether we should restore the code or only the data
Whether we should restore resources configuration from the backup
Show child attributes
The status text of the response
The status code of the response
Was this page helpful?