Search for an audit template (paginated list)
GET {{baseUrl}}/v1/ws/:workspaceId/AuditTemplates?includeRevisions=true&parentId=90244082-e0f0-7c09-2426-64e4431d1d9d&ObjectType=<string>&Types=Compliance&Types=Standard&Q=eu&tags=88057944&tags=-17779712&page=61551403&size=61551403&skip=61551403&sortBy=eu&asc=true&filters=eu
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
includeRevisions | boolean | ||
parentId | string | ||
ObjectType | string | ||
Types | string | ||
Types | string | ||
Q | string | Full text query | |
tags | number | ||
tags | number | ||
page | number | Pagination index (1 based, page 1 = 1, page 2 = 2...) | |
size | number | Size of the result page (default: 20, max 500) | |
skip | number | The number of items to skip (if not provided, it will use the default page and size prop) | |
sortBy | string | The field to sort | |
asc | boolean | True to sort ascending | |
filters | string | A serialized as json filter string using the JsonRuleEngine.net format | |
https://github.com/antoinebidault/JsonRuleEngine.Net | |||
The filters is a query param, that's why he must be properly serialized as a json string and url encoded | |||
e.g. {"field":"ProcessingType", "operator":"notEqual", "value": "Done"} | |||
The field prop must match one property name of the object (present in the output results) | |||
The operator can be equal, | |||
notEqual, | |||
lessThan, | |||
lessThanInclusive, | |||
greaterThan, | |||
greaterThanInclusive, | |||
in, | |||
notIn, | |||
contains, | |||
doesNotContains, | |||
isNull, | |||
isNotNull, | |||
isEmpty | |||
You can combine the filters as following : | |||
{ "separator":"Or","rules": [{"field":"ProcessingType", "operator":"notEqual", "value": "Done"},{"field":"ProcessingType", "operator":"isNull"}]} | |||
Serialize the filter param as following: | |||
?filters=${uriEncodeComponent(JSON.stringify({"field":"ProcessingType", "operator":"notEqual", "value": "Done"}))} |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"items":[{"label":"voluptate sint","id":"af325922-aea6-9fe2-a008-7a150d8f3289","version":"dolore sint dolore cillum","newVersion":true,"isPinned":true,"isRevision":true,"isBlockAnalysisShared":true,"nbReferences":11882549,"referenceId":"urn:uuid:4b205e9a-2afd-f7ef-5afa-e8f01241fa7e","nbResponses":-75183177,"parentId":"urn:uuid:18064c79-50dd-968a-43a7-ccb8669b6204","revisionDescription":"esse","logoUrl":"http://ZVuybucdJJXwUYVfBtsy.ycyqUdK7Nhts+FdS.HbD+KjZ","description":"exercitation aute","scheduleIntervalDays":-4566232,"versionNumber":-71757548,"dateCreation":"1987-06-17T17:15:28.899Z","dateUpdate":"1957-02-11T19:48:29.908Z","type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"creator":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"objectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"defaultOwners":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"tags":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"nbQuestions":37826062,"nbQuestionsRequired":39204069,"nbDatas":-95114659},{"label":"in nulla est ullamco","id":"urn:uuid:14b53bb1-6440-decd-c60d-de222716ecb7","version":"ad est incididunt","newVersion":false,"isPinned":false,"isRevision":false,"isBlockAnalysisShared":false,"nbReferences":-55574270,"referenceId":"urn:uuid:a5ab0c07-e7ea-e504-f0b7-b1ca21be0eb0","nbResponses":26811535,"parentId":"urn:uuid:231e4faa-da52-ed13-9376-332142558adc","revisionDescription":"magna nisi ad L","logoUrl":"https://unwibUfELjFvGOsesZmTwsbZhaAD.ogpugCHXATjcRfRSQdeggUZ5ZeQ4gzXigA.MeRgtY7YIevw.2ZfSlv-V-Dg.Q","description":"quis sint sed sunt minim","scheduleIntervalDays":-15848690,"versionNumber":18288447,"dateCreation":"1985-05-31T16:51:28.161Z","dateUpdate":"1961-03-07T23:01:03.007Z","type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"creator":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"objectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"defaultOwners":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"tags":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"nbQuestions":-46548908,"nbQuestionsRequired":65121698,"nbDatas":-40589110}],"total":54832722,"size":68823498,"page":24995598}