---
title: "Update replay heatmap snapshot"
method: PATCH
path: "/api/v2/replay/heatmap/snapshots/{snapshot_id}"
tags: ["Rum Replay Heatmaps"]
---

# Update replay heatmap snapshot

`PATCH /api/v2/replay/heatmap/snapshots/{snapshot_id}`

Update a heatmap snapshot.

## Path parameters

- `snapshot_id` string, required

## Request body

- SnapshotUpdateRequest — Request body for updating a heatmap snapshot.
  - `data` SnapshotUpdateRequestData, required — Data object for a heatmap snapshot update request, containing the resource identifier, type, and attributes.
    - `attributes` SnapshotUpdateRequestDataAttributes — Attributes for updating a heatmap snapshot, including event, session, and view context.
      - `event_id` string, required — Unique identifier of the RUM event associated with the snapshot.
      - `is_device_type_selected_by_user` boolean, required — Indicates whether the device type was explicitly selected by the user rather than auto-detected.
      - `session_id` string — Unique identifier of the RUM session associated with the snapshot.
      - `start` integer, required — Offset in milliseconds from the start of the session at which the snapshot was captured.
      - `view_id` string — Unique identifier of the RUM view associated with the snapshot.
    - `id` string — Unique identifier of the heatmap snapshot to update.
    - `type` 'snapshots', required — Snapshots resource type.

## Response `200`

OK

- Snapshot — A single heatmap snapshot resource returned by create or update operations.
  - `data` SnapshotData — Data object representing a heatmap snapshot, including its identifier, type, and attributes.
    - `attributes` SnapshotDataAttributes — Attributes of a heatmap snapshot, including view context, device information, and audit metadata.
      - `application_id` string — Unique identifier of the RUM application.
      - `created_at` string, date-time — Timestamp when the snapshot was created.
      - `created_by` string — Display name of the user who created the snapshot.
      - `created_by_handle` string — Email handle of the user who created the snapshot.
      - `created_by_user_id` integer — Numeric identifier of the user who created the snapshot.
      - `device_type` string — Device type used when capturing the snapshot (e.g., desktop, mobile, tablet).
      - `event_id` string — Unique identifier of the RUM event associated with the snapshot.
      - `is_device_type_selected_by_user` boolean — Indicates whether the device type was explicitly selected by the user rather than auto-detected.
      - `modified_at` string, date-time — Timestamp when the snapshot was last modified.
      - `org_id` integer — Numeric identifier of the organization that owns the snapshot.
      - `session_id` string — Unique identifier of the RUM session associated with the snapshot.
      - `snapshot_name` string — Human-readable name for the snapshot.
      - `start` integer — Offset in milliseconds from the start of the session at which the snapshot was captured.
      - `view_id` string — Unique identifier of the RUM view associated with the snapshot.
      - `view_name` string — URL path or name of the view where the snapshot was captured.
    - `id` string — Unique identifier of the heatmap snapshot.
    - `type` 'snapshots', required — Snapshots resource type.

## Other responses

- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
