Skip to main content

Post Data Filters

info

All JSON array responses have been shortened for readability.

POST/<ApplicationID/collections/<CollectionID>/datafilters/<DataFilterID>
Endpoint Requires Authentication


warning

Data Filters are primarily used with the frontend interface at go.centrix.world. They can only be used with a valid collection parent.

Example
https://api.centrix.world/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/datafilters
Description

Insert a new data filter for this collection. The data filter ID is not required. Providing an ID will update/overwrite the given data filter, excluding it will create a new one.

Filters are created with an owner, which should be the principal entity ID that made the request. If the filters isPublic is false, or allowPublicEditing is false, it cannot be editted by a different user.

Returns
{
"timestamp": "2023-03-23T13:25:09.205Z",
"data": {
"application": "641c1177ebc8b2f3c195b02c",
"localCollection": "641c1177ebc8b2f3c195b033",
"owner": "641c11c7ebc8b2f3c195b098",
"name": "Not Area 2",
"isPublic": true,
"allowPublicEditing": false,
"filter": {
"name": {
"$ne": "Area 2"
}
},
"_id": "641c53358fde9d1d8a0e1821",
"createdAt": "2023-03-23T13:25:09.142Z",
"updatedAt": "2023-03-23T13:25:09.142Z",
"__v": 0
}
}