Dave Hood
07/13/2023, 5:27 PMMichal Hauzírek
07/13/2023, 7:20 PMPOST /api/v1/entities/workspaces/<child_workspace_id>/workspaceDataFilterSettings
with payload:
{
"data": {
"attributes": {
"description": "any string",
"filterValues": [
"data value from filter column"
],
"title": "any string"
},
"id": "your id of this setting",
"relationships": {
"workspaceDataFilter": {
"data": {
"id": "id of workspace data filter in parent workspce",
"type": "workspaceDataFilter"
}
}
},
"type": "workspaceDataFilterSetting"
}
}
where id in the “data” section can be whatever you want and “id” in the workspaceDataFilter section should point to the id of the workspace data filter defined in the parent workspace.
And the call currently mentioned in the documentation you linked PUT /api/v1/entities/workspaces/<child_workspace_id>/workspaceDataFilterSettings/<object_id>
is only for modification of the existing workspace data filter setting (while the object_id in the URL would be the value from the field id
used while creating this setting.Jan Soubusta
07/14/2023, 9:29 AMDave Hood
07/17/2023, 11:32 AM