• Home
  • Dynatrace API
  • Configuration
  • RUM
  • Web application configuration
  • Key user actions
  • POST key user actions

Web application configuration API - POST a key user action

Adds a user action to the list of key user actions in the specified application.

The request consumes and produces an application/json payload.

POSTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/config/v1/applications/web/{id}/keyUserActions
SaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/applications/web/{id}/keyUserActions
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/applications/web/{id}/keyUserActions

Authentication

To execute this request, you need an access token with WriteConfig scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the required web application.

pathrequired
bodyKeyUserAction

The JSON body of the request. Contains the action to be marked as a key user action.

bodyoptional

Request body objects

The KeyUserAction object

Configuration of the key user action.

ElementTypeDescriptionRequired
namestring

The name of the action.

required
actionTypestring

The type of the action.

The element can hold these values
  • Custom
  • Load
  • Xhr
required
domainstring

The domain where the action is performed.

optional
meIdentifierstring

The Dynatrace entity ID of the action.

optional

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.

json
{ "name": "Loading of page /example", "actionType": "Load", "domain": "test.com" }

Response

Response codes

CodeTypeDescription
201EntityShortRepresentation

Success. The action has been marked as a key user action. The response contains its ID.

400ErrorEnvelope

Failed. The input is invalid.

Response body objects

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

ElementTypeDescription
idstring

The ID of the Dynatrace entity.

namestring

The name of the Dynatrace entity.

descriptionstring

A short description of the Dynatrace entity.

Response body JSON model

json
{ "id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a", "name": "Dynatrace entity", "description": "Dynatrace entity for the REST API example" }
Related topics
  • User actions

    Learn what user actions are and how they help you understand what users do with your application.