---
title: "Update a RUM application"
method: PATCH
path: "/api/v2/rum/applications/{id}"
tags: ["RUM"]
---

# Update a RUM application

`PATCH /api/v2/rum/applications/{id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/rum/applications/{id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update the RUM application with given ID in your organization.

## Path parameters

- `id` string, required

## Request body

- RUMApplicationUpdateRequest: RUM application update request.
  - `data` RUMApplicationUpdate, required: RUM application update.
    - `attributes` RUMApplicationUpdateAttributes: RUM application update attributes.
      - `name` string: Name of the RUM application.
      - `product_analytics_retention_state` 'MAX' | 'NONE': Controls the retention policy for Product Analytics data derived from RUM events.
      - `rum_event_processing_state` 'ALL' | 'ERROR_FOCUSED_MODE' | 'NONE': Configures which RUM events are processed and stored for the application.
      - `type` string: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
    - `id` string, required: RUM application ID.
    - `type` 'rum_application_update', required: RUM application update type.

## Response `200`

OK

- RUMApplicationResponse: RUM application response.
  - `data` RUMApplication: RUM application.
    - `attributes` RUMApplicationAttributes, required: RUM application attributes.
      - `api_key_id` integer: ID of the API key associated with the application.
      - `application_id` string, required: ID of the RUM application.
      - `client_token` string, required: Client token of the RUM application.
      - `created_at` integer, required: Timestamp in ms of the creation date.
      - `created_by_handle` string, required: Handle of the creator user.
      - `hash` string: Hash of the RUM application. Optional.
      - `is_active` boolean: Indicates if the RUM application is active.
      - `name` string, required: Name of the RUM application.
      - `org_id` integer, required: Org ID of the RUM application.
      - `product_scales` RUMProductScales: Product Scales configuration for the RUM application.
        - `product_analytics_retention_scale` RUMProductAnalyticsRetentionScale: Product Analytics retention scale configuration.
          - `last_modified_at` integer: Timestamp in milliseconds when this scale was last modified.
          - `state` 'MAX' | 'NONE': Controls the retention policy for Product Analytics data derived from RUM events.
        - `rum_event_processing_scale` RUMEventProcessingScale: RUM event processing scale configuration.
          - `last_modified_at` integer: Timestamp in milliseconds when this scale was last modified.
          - `state` 'ALL' | 'ERROR_FOCUSED_MODE' | 'NONE': Configures which RUM events are processed and stored for the application.
      - `remote_config_id` string: ID of the RUM SDK remote configuration for the application, if one exists.
      - `type` string, required: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
      - `updated_at` integer, required: Timestamp in ms of the last update date.
      - `updated_by_handle` string, required: Handle of the updater user.
    - `id` string, required: RUM application ID.
    - `type` 'rum_application', required: RUM application response type.

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `422`: Unprocessable Entity.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
