Skip to main content

Get All Revisions of a Legal Page

This endpoint retrieves all revisions of a legal page (ordered by last inserted revision).

info

This operation does not require authentication. If the user is authenticated the 'ack' field will be added to the response with the user's ack status for that document.

HTTP Request

GET /api/v2/legal_page/{policy}/revisions/

Parameters

NameInTypeRequiredDescription
policypathstringtrueCan be one between tec or privacy
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results

Example Request


const headers = {
'Accept':'application/json'
};

fetch('/api/v2/legal_page/{policy}/revisions/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Legal Page)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [{Legal Page}]
}