{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update the mapped metric with the given ID.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m`<br>Daily: `30/d`\n\n**Scopes:**\n`metrics:write`\n\n[OpenAPI Spec](https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/stable/apis/update_mapped_metric.json)","properties":{"path":{"type":"object","properties":{"id":{"description":"The type of mapping.","type":"string","enum":["added_to_cart","cancelled_sales","ordered_product","refunded_sales","revenue","started_checkout","viewed_product"],"examples":["revenue"]}},"required":["id"],"additionalProperties":false},"query":{"type":"object","properties":{"fields[mapped-metric]":{"type":"array","items":{"type":"string","enum":["id","updated"]},"description":"For more information please visit https://developers.klaviyo.com/en/v2026-10-15/reference/api-overview#sparse-fieldsets"}},"required":[],"additionalProperties":false},"headers":{"type":"object","properties":{"revision":{"type":"string","default":"2026-10-15","enum":["2026-10-15"],"description":"API endpoint revision (format: YYYY-MM-DD[.suffix])"}},"required":["revision"],"additionalProperties":false},"body":{"$ref":"#/definitions/MappedMetricPartialUpdateQuery"}},"required":["path","headers","body"],"additionalProperties":false,"definitions":{"MappedMetricPartialUpdateQuery":{"type":"object","properties":{"data":{"$ref":"#/definitions/MappedMetricPartialUpdateQueryResourceObject"}},"required":["data"]},"MappedMetricPartialUpdateQueryResourceObject":{"type":"object","properties":{"type":{"$ref":"#/definitions/MappedMetricEnum"},"id":{"description":"The type of mapping.","type":"string","enum":["added_to_cart","cancelled_sales","ordered_product","refunded_sales","revenue","started_checkout","viewed_product"],"examples":["revenue"]},"relationships":{"type":"object","properties":{"metric":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"$ref":"#/definitions/MetricEnum"},"id":{"description":"The ID of the metric for this mapping. A null value will unset the mapping.","type":"string"}},"required":["type","id"]}}},"custom-metric":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"$ref":"#/definitions/CustomMetricEnum"},"id":{"description":"The ID of the custom metric for this mapping. A null value will unset the mapping.","type":"string"}},"required":["type","id"]}}}}}},"required":["type","id"]},"MappedMetricEnum":{"type":"string","enum":["mapped-metric"]},"MetricEnum":{"type":"string","enum":["metric"]},"CustomMetricEnum":{"type":"string","enum":["custom-metric"]}}},"name":"Update Mapped Metric","id":"klaviyo.update_mapped_metric","example":{"path":{"id":"revenue"},"headers":{"revision":"2026-10-15"},"body":{"data":{"type":"mapped-metric","id":"revenue"}}},"maxRequests":1,"summary":false}}