Create a new FieldOptionSearch
The most commmon uses of an FieldOptionSearch is to retrieve the FieldOption resources for an Field using the FIELD_ID field criterion. When Field.hierarchical = true it is recommended to retrieve each level of the tree via a separate search using PARENT_ID field criteria.
Security
bearerToken
The maximum number of items to return in the result set.
Default:100
Example:100
- Productionhttps://api-v2.dash.app/field-option-searches
- Staginghttps://api-v2.dashstaging.app/field-option-searches
- FIELD_EQUALS
- FIELD_CONTAINS
- FIELD_IN
- FIELD_IS_EMPTY
- MATCH_ALL
- AND
- OR
- NOT
- Search for top level options
- Search for sub level options
- Search for all options for a field
curl -i -X POST \
https://api-v2.dash.app/field-option-searches \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"from": 0,
"pageSize": 100,
"criterion": {
"type": "AND",
"criteria": [
{
"type": "FIELD_EQUALS",
"field": "FIELD_ID",
"value": "a52b5315-15b8-417f-b742-d6902108bac1"
},
{
"type": "FIELD_IS_EMPTY",
"field": "PARENT_ID"
}
]
},
"sorts": [
{
"field": "POSITION",
"order": "ASC"
}
]
}'Success
The specified page of FieldOption resources which match the search criterion
The total number of FieldOption resources which match the search criterion
Example:1337
Response
- Search for top level options
- Search for sub level options
- Search for all options for a field
{ "results": [ { … }, { … } ], "totalResults": 2 }