Restore Document Version
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"object": "document",
"page_id": "<string>",
"content": "<string>",
"override_content": "<string>",
"related_questions": "<string>",
"status": "<string>",
"public_display": true,
"default_language": "en",
"source_id": "<string>",
"source_name": "<string>",
"parent_id": "<string>",
"position": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Documents
Restore Document Version
Restore a document to a previous version.
POST
/
api
/
v1
/
documents
/
{document_id}
/
versions
/
{version_id}
/
restore
Restore Document Version
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/versions/{version_id}/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"object": "document",
"page_id": "<string>",
"content": "<string>",
"override_content": "<string>",
"related_questions": "<string>",
"status": "<string>",
"public_display": true,
"default_language": "en",
"source_id": "<string>",
"source_name": "<string>",
"parent_id": "<string>",
"position": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Response
200 - application/json
OK
Stripe-aligned document response.
