Get fields and conditions
GET {{baseUrl}}/v1/subjectAccessRequests/fieldsAndConditions?module=<string> max chars : 100
This API fetchs possible fileds list and conditions
OAuth Scope
Desk.settings.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
module | string | Name of the modules from which the resources must be fetched. Values allowed are tickets and contacts . If you want to fetch resources from both modules, pass the value allEntities . |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"displayLabel":"AllEntities","name":"AllEntities","fieldDetails":[{"availableConditions":[{"condition":"is","i18NCondition":"is","value":["${CUSTOM}"]},{"condition":"isn't","i18NCondition":"isn't","value":["${CUSTOM}"]},{"condition":"starts with","i18NCondition":"starts with","value":["${CUSTOM}"]},{"condition":"is empty","i18NCondition":"is empty","value":["${EMPTY}"]},{"condition":"is not empty","i18NCondition":"is not empty","value":["${NOTEMPTY}"]}],"fieldLabel":"Phone","i18NLabel":"Phone","type":"text"},{"availableConditions":[{"condition":"is","i18NCondition":"is","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"isn't","i18NCondition":"isn't","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"is after","i18NCondition":"is after","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"is before","i18NCondition":"is before","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"between","i18NCondition":"between","value":[["${CURRENTTIME}","${CUSTOM}"],["${CURRENTTIME}","${CUSTOM}"]]},{"condition":"not between","i18NCondition":"not between","value":[["${CURRENTTIME}","${CUSTOM}"],["${CURRENTTIME}","${CUSTOM}"]]}],"fieldLabel":"Created Time","i18NLabel":"Created Time","type":"dateTime"},{"availableConditions":[{"condition":"is","i18NCondition":"is","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"isn't","i18NCondition":"isn't","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"is after","i18NCondition":"is after","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"is before","i18NCondition":"is before","value":["${CURRENTTIME}","${CUSTOM}"]},{"condition":"between","i18NCondition":"between","value":[["${CURRENTTIME}","${CUSTOM}"],["${CURRENTTIME}","${CUSTOM}"]]},{"condition":"not between","i18NCondition":"not between","value":[["${CURRENTTIME}","${CUSTOM}"],["${CURRENTTIME}","${CUSTOM}"]]}],"fieldLabel":"Modified Time","i18NLabel":"Modified Time","type":"dateTime"}]}