Updates the specified user session property in an application.
If the session property with the specified ID does not exist, a new session property is created.
The request consumes and produces an application/json payload.
| PUT | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/{key} |
| Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/{key} |
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 UUID of the required mobile or custom application. It can be found in the Instrumentation Wizard of your app. | path | Required |
| key | string | The key of the required mobile session or user action property. | path | Required |
| body | Mobile | The JSON body of the request. Contains the configuration of the property. | body | Optional |
MobileSessionUserActionPropertyUpd objectAn update of a 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. The element can hold these values
| 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 |
| name | string | The name of the reported value. Only applicable when the origin is set to | Optional |
| origin | string | The origin of the property The element can hold these values
| 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. The element can hold these values
| 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","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. |
| 204 | - | Success. The property has been updated. The response doesn't have a body. |
| 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. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"displayName": "string","key": "string"}
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "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 | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/{key}/validator |
| Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/applications/mobile/{applicationId}/userActionAndSessionProperties/{key}/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. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}