Delete a filter segment in Dynatrace with the Grail Filter Segments API by UID and remove it from the environment for all users.
| DELETE | SaaS | https://{your-environment-id}.apps.dynatrace.com/v1/filter-segments/{filterSegmentUid} |
You provide the filterSegmentUid path parameter to identify the filter segment to remove. The operation deletes it from the environment for all users and returns no content.
To execute this request, you need a platform token or OAuth access token with storage:filter-segments:delete scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| filterSegmentUid | string | UID of the filter-segment | path | Required |
| Code | Type | Description |
|---|---|---|
| 204 | - | Filter-segment successfully deleted. |
| 400 | Error | bad request |
| 401 | Error | unauthorized |
| 403 | Error | missing permissions |
| 404 | Error | Not found: the server cannot find the requested filter-segment. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Exceptional | - |
ExceptionalReturn object| Element | Type | Description |
|---|---|---|
| code | integer | - |
| errorDetails | (Custom | - |
| message | string | - |
CustomValidationErrorInfo objectErrorInfo object| Element | Type | Description |
|---|---|---|
| message | string | - |
InvalidAuditEventsErrorInfo objectMediaTypeErrorInfo objectParameterErrorInfo objectProxyErrorInfo objectQueryFrontendRawErrorInfo objectRequestBodyErrorInfo object{"error": {"code": 400,"message": "Missing request header","errorDetails": [{"type": "parameter","parameterDescriptor": "Dt-Tenant","message": "is required"}]}}