Docs

Create Filter

POST /documents/{documentId}/filters

POST/documents/{documentId}/filters

Adds a document filter a reader picks (Collaborator, Area, Activity, Crew, ResourceType, Date or Text) and returns it with the document's new version. Data block rules bind to it as "$filter:" followed by the filter id. A required filter makes the block fail when unresolved. Send the version from DynamicDocs_GetDocument: a stale one answers 409 with currentVersion. Needs Edit on the doc's file. On an organization-drive doc an Area filter is a 400: it exists only inside an event; a Collaborator filter there takes collaborator record ids and a Crew filter org crew ids.

Path Parameters

FieldTypeRequiredDescription
documentIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
filterTypestringOptional
isMultiSelectbooleanOptional
isRequiredbooleanOptional
defaultValuesstringOptional
versionintegerOptional

Response

FieldTypeDescription
iduuid
namestring| null
filterTypestring| null
isMultiSelectboolean
isRequiredboolean
defaultValuesstring| null
versioninteger