Creates a new user session property in the specified application.
The request consumes and produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
applicationId | string | The ID of the required application. | path | required |
body | Mobile | The JSON body of the request. Contains the configuration of the property. | body | optional |
MobileSessionUserActionProperty
objectConfiguration of the mobile session or user action property.
Element | Type | Description | Required |
---|---|---|---|
aggregation | string | The aggregation type of the property. It defines how multiple values of the property are aggregated.
| optional |
cleanupRule | string | The cleanup rule of the property. Defines how to extract the data you need from a string value. Specify the regular expression for the data you need there. | optional |
displayName | string | The display name of the property. | optional |
key | string | The unique key of the mobile session or user action property. | required |
name | string | The name of the reported value. Only applicable when the origin is set to | optional |
origin | string | The origin of the property
| required |
serverSideRequestAttribute | string | The ID of the request attribute. Only applicable when the origin is set to | optional |
storeAsSessionProperty | boolean | If | optional |
storeAsUserActionProperty | boolean | If | optional |
type | string | The data type of the property.
| required |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"aggregation": "AVERAGE","cleanupRule": "string","displayName": "string","key": "string","name": "string","origin": "API","serverSideRequestAttribute": "string","storeAsSessionProperty": true,"storeAsUserActionProperty": true,"type": "DOUBLE"}
Code | Type | Description |
---|---|---|
201 | Mobile | Success. The property has been created. The response contains the ID of the new property. |
400 | Error | Failed. The input is invalid. |
MobileSessionUserActionPropertyShort
objectA short representation of mobile session or user action property.
Element | Type | Description |
---|---|---|
displayName | string | The display name of the session or user action property. |
key | string | The key of the session or user action property. |
{"displayName": "string","key": "string"}
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.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/validator |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/validator |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Code | Type | Description |
---|---|---|
204 | - | Success. The submitted configuration is valid. Response doesn't have a body. |
400 | Error | Failed. The input is invalid. |