Klaviyo · Schema
CustomMetricPartialUpdateQueryResourceObject
MarketingEmailSMSCustomer DataE-CommerceAutomation
Properties
| Name | Type | Description |
|---|---|---|
| type | object | |
| id | string | The ID of the custom metric |
| attributes | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/CustomMetricPartialUpdateQueryResourceObject",
"title": "CustomMetricPartialUpdateQueryResourceObject",
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/CustomMetricEnum"
},
"id": {
"description": "The ID of the custom metric",
"type": "string",
"example": "925e385b52fb405715f3616c337cc65c"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.",
"type": "string",
"example": "My custom metric",
"nullable": true
},
"definition": {
"description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.",
"example": {
"aggregation_method": "value",
"metric_groups": [
{
"metric_id": "AAAAAA",
"metric_filters": [
{
"property": "my_string_property",
"filter": {
"type": "string",
"operator": "starts-with",
"value": "some_substring"
}
},
{
"property": "my_numeric_property",
"filter": {
"type": "numeric",
"operator": "greater-than-or-equal",
"value": 999
}
}
],
"value_property": "$value"
},
{
"metric_id": "BBBBBB",
"metric_filters": [
{
"property": "my_boolean_property",
"filter": {
"type": "boolean",
"operator": "equals",
"value": false
}
},
{
"property": "my_list_property",
"filter": {
"type": "list",
"operator": "contains",
"value": "some_value_in_a_list"
}
}
],
"value_property": "my_numeric_property"
}
]
},
"$ref": "#/components/schemas/CustomMetricDefinition",
"nullable": true
}
}
}
},
"required": [
"type",
"id",
"attributes"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/klaviyo-custommetricpartialupdatequeryresourceobject"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.