Applications detection rules API - PUT a rule

Updates the specified application detection rule.

If the application detection rule with the specified ID doesn't exist, a new rule is created and appended to the end of the rule list.

If the order parameter is set for an existing rule, the request uses this value. Otherwise, it keeps the existing order of rules.

The request consumes and produces an application/json payload.

  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/applicationDetectionRules/{id}
  • SaaS https://{your-environment-id}{id}


Parameter Type Description In Required
id string

The ID of the application detection rule to update.

The ID of the application detection rule in the body of the request, if given, must match this ID.

path required
body ApplicationDetectionRuleConfig

JSON body of the request containing updated definition of the application detection rule. If order is present, it will be used.

body optional

The ApplicationDetectionRuleConfig object

Element Type Description Required
metadata ConfigurationMetadataDtoImpl

Metadata useful for debugging.

id string

The unique ID of the rule.

When adding a new rule, you can either specify your own ID, or don't specify anything, in that case the ID will be generated automatically.

order string

The order string. Sorting application detection rules alphabetically by their order string determines their relative ordering.

Typically this is managed by Dynatrace internally and will not be present in GET responses.

applicationIdentifier string

The identifier of the application, for example APPLICATION-4A3B43. You must use an existing ID.

filterConfig ApplicationFilter

Defines how to identify an application.


The ApplicationFilter object

Defines how to identify an application.

Element Type Description Required
pattern string

The string to look for.

applicationMatchType string

Defines the matching rule.

The applicationMatchType element can hold these values.
applicationMatchTarget string

Defines where to look for the string.

The applicationMatchTarget element can hold these values.

The ConfigurationMetadataDtoImpl object

Metadata useful for debugging

Element Type Description Required
configurationVersions integer[]

A Sorted list of the version numbers of the configuration.

clusterVersion string

Dynatrace server version.


Possible values

Possible values for the applicationMatchTarget element in the ApplicationFilter object:

  • URL

Possible values for the applicationMatchType element in the ApplicationFilter object:


Response format

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

Element Type Description
id string

The ID of the Dynatrace entity.

name string

The name of the Dynatrace entity.

description string

A short description of the Dynatrace entity.

Response codes

Code Description

Success. Application detection rule has been created. The new rule's ID and name will be returned.


Success. Application detection rule has been updated. Response doesn't have a body.


Failed. The input is invalid.

Validate payload

We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.

The request consumes an application/json payload.

The request consumes an application/json payload.

  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/applicationDetectionRules/{id}/validator
  • SaaS https://{your-environment-id}{id}/validator

Response codes

Code Description
204 Validated. The submitted configuration is valid. Response does not have a body.
400 Failed. The input is invalid.


In this example, the request updates the application detection rule from the POST request example. It changes the order of the rule to position two and changes the condition of the rule to the domain that contains the booking.easyTravel pattern.

The API token is passed in the Authorization header.

The request body is truncated in the Curl section. See the Request body section for the full body. You can download or copy the example request body to try it out on your own. Be sure to use an application ID that is available in your environment.


curl -X PUT \ \
  -H 'Authorization: Api-token abcdefjhij1234567890' \
  -H 'Content-Type: application/json' \  
  -d '{ <truncated - see the Request body section > }'

Request URL

Request body

"id": "9568a82b-73d8-4b18-be1a-4289433e2619",
  "applicationIdentifier": "APPLICATION-900C1E36674F607D",
  "order": 2,
  "filterConfig": {
    "pattern": "booking.easyTravel",
    "applicationMatchType": "BEGINS_WITH",
    "applicationMatchTarget": "DOMAIN"

Response code