Syndai Docs

Restore an app's data to a moment

POST
/api/v1/external/coding/customers/{customer_id}/repositories/{coding_repository_id}/publication/data/restore

Queues a restore of the app's whole data to at (a moment in the last 30 days) or to restore point point_id (undo_restore or one of deploy_points). Later account deletions, blocks and removals are kept; queued mail is dropped. A restore can itself be undone. 400 DATA_REFUSED when the moment is outside the window or the app keeps no data. Needs coding:apps:publish.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
coding_repository_id*string
Formatuuid

Request Body

application/json
  1. body
at?|null
point_id?|null

Response Body

Request accepted, processing continues off-line

application/json
  1. response
restore_id*string
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/publication/data/restore' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "restore_id": "string"}
Was this page helpful?