Martin Matějka
08/03/2023, 11:45 AM## Delete Workspace Filter
curl -X "DELETE" "<https://telemetry.north-europe.azure.keboola.com/api/v1/entities/workspaces/5227_com-keboola-azure-north-europe/workspaceDataFilters/5227_com-keboola-azure-north-europe_filter>" \
-H 'Content-Type: application/vnd.gooddata.api+json' \
-H 'Authorization: ***** Hidden credentials *****'
Based on: https://www.gooddata.com/developers/cloud-native/doc/cloud/api-and-sdk/api/api_reference_all/#operation/deleteEntity@WorkspaceDataFilters
When I run it, I get expected 204 No Content. But when I then make an API call to list all filters, I can still see it among the others:
## List Workspaces Filters
curl "<https://telemetry.north-europe.azure.keboola.com/api/v1/layout/workspaceDataFilters>" \
-H 'Content-Type: application/vnd.gooddata.api+json' \
-H 'Authorization: ***** Hidden credentials *****'
I’ve also tried to delete Workspace Data Filter Settings:
## Delete Workspace Filter Settings
curl -X "DELETE" "<https://telemetry.north-europe.azure.keboola.com/api/v1/entities/workspaces/5227_com-keboola-azure-north-europe/workspaceDataFilterSettings/5227_com-keboola-azure-north-europe_filter>" \
-H 'Content-Type: application/vnd.gooddata.api+json' \
-H 'Authorization: ***** Hidden credentials *****'
But that request fails with this error:
DELETE operation not allowed on path '/api/v1/entities/workspaces/5227_com-keboola-azure-north-europe/workspaceDataFilterSettings/5227_com-keboola-azure-north-europe_filter'.
We need to get rid of the filter associated with the workspace, as otherwise creation of new workspace fails after other one is deleted.Joseph Heun
08/03/2023, 12:12 PMMartin Matějka
08/03/2023, 12:40 PMMartin Matějka
08/07/2023, 11:14 AMDelete Workspace Filter
call, the filter is still present when listing the filters by List Workspaces Filters
call.Joseph Heun
08/07/2023, 12:18 PMMartin Matějka
08/07/2023, 1:08 PMJoseph Heun
08/07/2023, 1:11 PMMartin Matějka
08/07/2023, 1:15 PMJoseph Heun
08/07/2023, 1:18 PMJoseph Heun
08/08/2023, 8:24 AMMartin Matějka
08/08/2023, 10:10 AM2.2.1
and that call is probably not supported there. That might be the relation we need to get rid of. I’ll update you with my findings.Martin Matějka
08/08/2023, 11:33 AM