- Paligo API
- search (beta)
- Search Paligo content & resources
search (beta)
Search Paligo content & resources
const inputBody = '{"resource": "documents","per_page": 7,"page": 3,"where": [{"operator": "has","property": "languages","value": "en"}]}';const headers = {'Content-Type':'application/json','Accept':'application/json'};fetch('https://{instance}.paligoapp.com/api/v2/search/',{method: 'POST',body: inputBody,headers: headers}).then(function(res) {return res.json();}).then(function(body) {console.log(body);});
Body parameter
{"resource": "documents","per_page": 7,"page": 3,"where": [{"operator": "has","property": "languages","value": "en"}]}
Responses
{"page": 7,"total_pages": 130,"per_page": 1,"items": [{"id": 123,"name": "My topic","uuid": "UUID-1234-5678","type": "document","creator": "2","owner": "2","author": "2","created_at": 1603622378,"modified_at": 1603622378,"checkout": "false","checkout_user": "2","parent_resource": 456,"taxonomies": [],"content": "<?xml>...","languages": [],"custom_attributes": []}]}