Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/update_mapped_metric.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_mapped_metric.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

Update Mapped Metric

PATCHhttps://a.klaviyo.com/api/mapped-metrics/{id}

Update the mapped metric with the given ID.

Revision header
revision: 2026-07-15required
Scopes
metrics:write
Rate limits
Burst: 1/sSteady: 15/mDaily: 30/d

Path parameters

  • id#stringrequired

    The type of mapping.

    Allowed values:
    • added_to_cart
    • cancelled_sales
    • ordered_product
    • refunded_sales
    • revenue
    • started_checkout
    • viewed_product

    Example: revenue

Query parameters

  • fields[mapped-metric]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • updated

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • mapped-metric
    • id#stringrequired

      The type of mapping.

      Allowed values:
      • added_to_cart
      • cancelled_sales
      • ordered_product
      • refunded_sales
      • revenue
      • started_checkout
      • viewed_product

      Example: revenue

    • relationships#object
      Show 2 fields
      • metric#object
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • metric
          • id#stringrequired

            The ID of the metric for this mapping. A null value will unset the mapping.

      • custom-metric#object
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • custom-metric
          • id#stringrequired

            The ID of the custom metric for this mapping. A null value will unset the mapping.

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • mapped-metric
    • id#stringrequired

      The type of mapping.

      Allowed values:
      • added_to_cart
      • cancelled_sales
      • ordered_product
      • refunded_sales
      • revenue
      • started_checkout
      • viewed_product

      Example: revenue

    • attributes#objectrequired
      Show 1 field
      • updated#string<date-time>required

        The datetime when this mapping was last updated.

        Example: 2025-04-15T00:00:00Z

    • relationships#object
      Show 2 fields
      • metric#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • metric
          • id#stringrequired

            The ID of the metric for this mapping.

      • custom-metric#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • custom-metric
          • id#stringrequired

            The ID of the custom metric for this mapping.

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string