Applications API - POST tags

Assigns custom tags to the specified application. You only need to provide a tag value. The CONTEXTLESS context will be assigned automatically.

The request consumes an application/json payload.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/applications/{meIdentifier}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/applications/{meIdentifier}

Authentication

To execute this request, you need the Access problem and event feed, metrics, and topology (DataExport) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

Parameter Type Description In Required
meIdentifier string

The Dynatrace entity ID of the application you want to update.

path required
body UpdateEntity body optional

The UpdateEntity object

A list of tags to be assigned to a Dynatrace entity.

Element Type Description Required
tags string[]

A list of tags to be assigned to a Dynatrace entity.

required

Response format

A successful request doesn't return any content.

Example

In this example, the request assigns the tags iOS app and Android app to the easyTravel Demo application, which has the ID MOBILE_APPLICATION-752C288D59734C79.

The API token is passed in the Authorization header.

Curl

curl -X POST \
  https://mySampleEnv.live.dynatrace.com/api/v1/entity/applications/MOBILE_APPLICATION-752C288D59734C79 \
  -H 'Authorization: Api-Token abcdefjhij1234567890' \  
  -H 'Content-Type: application/json' \
  -d '{
  "tags": [
    "iOS app",
    "Android app"
  ]
}'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v1/entity/applications/MOBILE_APPLICATION-752C288D59734C79

Request body

{
  "tags": [
    "iOS app",
    "Android app"
  ]
}

Response code

204