Try it free

Create a resource notification

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Create a resource notification in Dynatrace with the Notification Service API by providing the app, notification type, and resource identifier.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/notification/v2/resource-notifications

Overview

You provide appId, notificationType, and resourceId in the request body. The response returns the created resource notification.

Authentication

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.

Parameters

ParameterTypeDescriptionInRequired
bodyResourceNotificationRequest-bodyRequired

Request body objects

The ResourceNotificationRequest object

ElementTypeDescriptionRequired
appIdstring

App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger.

Optional
notificationTypestring

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.

Required
resourceIdstring

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.

Required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"appId": "string",
"notificationType": "string",
"resourceId": "string"
}

Response

Response codes

CodeTypeDescription
201ResourceNotification-
4XXErrorEnvelope-
5XXErrorEnvelope-

Response body objects

The ResourceNotification object

ElementTypeDescription
idstring-
appIdstring

App id for registered notification. Optional, by default automatically inferred from the request. Only relevant for manual testing purposes via swagger.

notificationTypestring

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.

resourceIdstring

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.

owningUserstring-
modificationInfoModificationInfo-

The ModificationInfo object

ElementTypeDescription
createdBystring-
createdTimestring-
lastModifiedBystring-
lastModifiedTimestring-

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"id": "string",
"appId": "string",
"notificationType": "string",
"resourceId": "string",
"owningUser": "string",
"modificationInfo": {
"createdBy": "string",
"createdTime": "string",
"lastModifiedBy": "string",
"lastModifiedTime": "string"
}
}
{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform