curl --request POST \
--url https://api.example.com/filter/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"languageID": 1,
"filterLocationCode": "APIACTIVITYSCREEN",
"title": "New Filter ABC 123",
"isShared": true,
"filterParameters": [
{
"controlCode": "CHECKBOXFEATURED",
"controlTypeID": 2,
"valueObject": "{'Key':'Value'}"
}
]
}
EOF{
"success": true,
"data": "<unknown>"
}Saves a new reusable filter for a given screen or datagrid.
FilterLocationCode: (int)
APIACTIVITYSCREEN: The filter location of the activity screen in the internal admin dashboard application.LANGUAGESDATAGRID: The filter location of the languages screen in the internal admin dashboard application.ACCOUNTSPONSORSHIPS: The filter location of the sponsorships datagrid for both internal admin dashboard application and the external iser account backend user experience.ControlTypeID: (int) within the FilterParameter object ----this is only used if it is a NEW control being added to the filter. If it is an existing control, this is not needed and can be null.----
1 = Text Input: A text input field.2 = Checkbox: A checkbox.3 = Radio Button: A radio button.4 = Dropdown: A dropdown.5 = Lookup: A lookup field.6 = Switch: A switch.7 = Tab Selector: A tab selector.8 = Slider: A slider.9 = Date Picker: A date picker.10 = Time Picker: A time picker.ControlCode: (string) within the FilterParameter object, represents the all-caps code for the control being assigned a value.
LOOKUPISERSLOOKUPFLAGSCHECKBOXIOSTABSADJUDICATIONFilterParameter Object
ValueObject (string) can be whatever JSON serialized object the front-end client wants to send.curl --request POST \
--url https://api.example.com/filter/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"languageID": 1,
"filterLocationCode": "APIACTIVITYSCREEN",
"title": "New Filter ABC 123",
"isShared": true,
"filterParameters": [
{
"controlCode": "CHECKBOXFEATURED",
"controlTypeID": 2,
"valueObject": "{'Key':'Value'}"
}
]
}
EOF{
"success": true,
"data": "<unknown>"
}The access token received from the authorization server in the OAuth 2.0 flow.