Download the dynatrace.config.yaml file for a Flutter mobile frontend with the Dynatrace RUM API to configure Real User Monitoring in your app.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/rum/v1/mobileConfigSnippets/flutter/{id}/configFile |
You use the id path parameter, the Smartscape FRONTEND ID of a mobile frontend, to download the Flutter dynatrace.config.yaml configuration file as an attachment. The optional userOptIn and startupWithGrail query parameters override the configured settings in the generated file. A 200 response returns the file, ready to add to your project.
To execute this request, you need a platform token or OAuth access token with rum:mobile-config-snippets:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | Smartscape FRONTEND id. | path | Required |
| userOptIn | boolean | Enables or disables user opt-in mode. If specified, this overrides the configured value. | query | Optional |
| startupWithGrail | boolean | Enables or disables startup with Grail. If specified, this overrides the configured value. | query | Optional |
| Code | Type | Description |
|---|---|---|
| 200 | string | Success. The response contains the Flutter dynatrace.config.yaml file. |
| 400 | Error | Bad request. |
| 404 | Error | Frontend not found. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
ResponseBody objectErrorEnvelope 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"}}