Skip to navigation

Create a filter

View as Markdown
Create a filter within a directory

Authentication

AuthorizationToken

Your API key, sent as Authorization: Token <your API key>

Path parameters

directoryIdstringRequiredformat: "uuid"
ID of the directory containing the filter

Request

This endpoint expects an object.
idstringRequiredformat: "uuid"
typestringRequired>=1 character
namestringRequired1-150 characters
slugstringRequired>=1 character
orderintegerRequired>=0
parentFilterIdstringRequiredformat: "uuid"
parentFilterSlugstringRequired>=1 character
multipleSelectFromDashboardbooleanRequired
multipleSelectFromDirectorybooleanRequired
userAssignablebooleanRequired
displayInDirectorybooleanRequired
displayInInternalDirectorybooleanRequired
displayInEntryProfilebooleanRequired
displayInInternalEntryProfilebooleanRequired
displayInEntryProfileMainAreabooleanRequired
requiredbooleanRequired
overridesobject or nullRequired
Visibility rule of the filter, or null when it has none.
assignmentDescriptionstring or nullOptional<=150 characters
multipleLimitinteger or nullOptional1-250
isLocationbooleanOptionalDefaults to false
Whether this is one of the Country, Region and City filters, which visitors pick from as one Location filter.

Response

Details of the filter
namestring<=150 characters
orderintegerOptional>=0
assignmentDescriptionstring or nullOptional<=150 characters
multipleSelectFromDashboardbooleanOptional
multipleLimitinteger or nullOptional1-250
multipleSelectFromDirectorybooleanOptional
userAssignablebooleanOptional
displayInDirectorybooleanOptional
displayInInternalDirectorybooleanOptional
displayInEntryProfilebooleanOptional
displayInInternalEntryProfilebooleanOptional
displayInEntryProfileMainAreabooleanOptional
requiredbooleanOptional
overridesobject or nullOptional

A filter’s visibility rule, in the same shape as a form field’s overrides: when the conditions are met the filter takes the hidden value, otherwise the opposite one.

Errors

400
Bad Request Error