Docs
Create Filter
POST /documents/{documentId}/filters
POST
/documents/{documentId}/filtersAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| documentId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| filterType | string | Optional | |
| isMultiSelect | boolean | Optional | |
| isRequired | boolean | Optional | |
| defaultValues | string | Optional | |
| version | integer | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| filterType | string| null | |
| isMultiSelect | boolean | |
| isRequired | boolean | |
| defaultValues | string| null | |
| version | integer |