Delete a resource notification in Dynatrace with the Notification Service API by notification type and resource identifier, optionally scoped to an app.
| DELETE | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/notification/v2/resource-notifications/{notificationType}/{resourceId} |
You pass notificationType and resourceId in the path, and can include appId as a query parameter. The operation returns no response body.
To execute this request, you need a platform token or OAuth access token with notification:notifications:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| appId | string | Application id associated with the notification. Optional, by default automatically inferred from the request header. Only relevant for manual testing purposes via swagger. | query | Optional |
| notificationType | string | String that defines the type of a notification in context of an app. Allows to differentiate between multiple types of notifications in context of one app. | path | Required |
| resourceId | string | Unique identifier of resource to notify on. Used to determine if there is a notification registered for a resource in context of the app and notification type for a user. | path | Required |
| Code | Type | Description |
|---|---|---|
| 204 | - | No response body |
| 4XX | Error | - |
| 5XX | Error | - |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| message | string | - |
| code | integer | - |
| details | Error | - |
ErrorDetails object| Element | Type | Description |
|---|---|---|
| errorCode | string | - |
| errorRef | string | - |
{"error": {"message": "string","code": 1,"details": {"errorCode": "string","errorRef": "string"}}}