{ "openapi": "3.0.2", "info": { "title": "Klaviyo API (Beta)", "version": "2026-07-15.pre", "description": "The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.", "contact": { "name": "Klaviyo Developer Experience Team", "email": "developers@klaviyo.com", "url": "https://developers.klaviyo.com" }, "termsOfService": "https://www.klaviyo.com/legal/api-terms", "license": { "name": "License", "url": "https://www.klaviyo.com/legal" } }, "servers": [ { "url": "https://a.klaviyo.com", "description": "Production" } ], "security": [ { "Klaviyo-API-Key": [] } ], "paths": { "/api/object-schemas/{id}": { "patch": { "operationId": "update_object_schema_beta", "summary": "Update Object Schema", "description": "\n > \ud83d\udea7 This endpoint is in beta and subject to change.\n >\n > A beta revision header (2026-07-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy) for more information.\n\nUpdate the object schema with the given ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m`\n\n**Scopes:**\n`custom-objects:write`\n\n[OpenAPI Spec](https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/beta/apis/update_object_schema_beta.json)", "parameters": [ { "name": "id", "in": "path", "description": "The ULID ID of the object schema.", "required": true, "schema": { "description": "The ULID ID of the object schema.", "type": "string", "example": "01K61DKJ7EKJ0ES9VE456XF5JG" } }, { "name": "fields[object-schema]", "in": "query", "description": "For more information please visit https://developers.klaviyo.com/en/v2026-07-15.pre/reference/api-overview#sparse-fieldsets", "required": false, "schema": { "type": "array", "items": { "type": "string", "enum": [ "configuration", "configuration.primary_image_url_property_id", "configuration.record_explorer_display_property_ids", "configuration.searchable_property_ids", "configuration.thumbnail_image_url_property_id", "configuration.title_property_id", "description", "id", "properties", "published_at", "required", "status", "title", "visibility" ] } }, "explode": false }, { "name": "revision", "in": "header", "description": "API endpoint revision (format: YYYY-MM-DD[.suffix])", "required": true, "schema": { "type": "string", "default": "2026-07-15.pre" } } ], "requestBody": { "description": "Update an object schema by ID (beta V2 revision with configuration).", "required": true, "content": { "application/vnd.api+json": { "schema": { "$ref": "#/components/schemas/ObjectSchemaPartialUpdateQueryV2" } } } }, "responses": { "200": { "description": "Success", "content": { "application/vnd.api+json": { "schema": { "$ref": "#/components/schemas/PatchObjectSchemaResponseV2" } } } }, "4XX": { "$ref": "#/components/responses/ClientError" }, "5XX": { "$ref": "#/components/responses/ServerError" } }, "tags": [ "Beta APIs" ], "x-klaviyo-pre-release": "BETA", "x-klaviyo-ratelimit": { "burst": "3/s", "steady": "60/m" }, "x-klaviyo-scopes": [ "custom-objects:write" ], "x-klaviyo-subtag": "Custom Objects" } } }, "components": { "responses": { "ClientError": { "description": "Client Error", "content": { "application/vnd.api+json": { "schema": { "type": "object", "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ "id", "code", "title", "detail" ], "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "title": { "type": "string" }, "detail": { "type": "string" }, "source": { "type": "object", "properties": { "pointer": { "type": "string" }, "parameter": { "type": "string" } } } } } } }, "required": [ "errors" ] } } } }, "ServerError": { "description": "Server Error", "content": { "application/vnd.api+json": { "schema": { "type": "object", "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ "id", "code", "title", "detail" ], "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "title": { "type": "string" }, "detail": { "type": "string" }, "source": { "type": "object", "properties": { "pointer": { "type": "string" }, "parameter": { "type": "string" } } } } } } }, "required": [ "errors" ] } } } } }, "schemas": { "APISchemaProperty": { "type": "object", "properties": { "id": { "description": "The ID of the schema property. Must be a postive integer.", "type": "integer", "example": 1 }, "name": { "description": "The name of the schema property", "type": "string", "example": "service_plan" }, "type": { "description": "The type of the schema property", "type": "string", "enum": [ "boolean", "float", "int", "list_str", "string", "timestamp" ] }, "description": { "description": "The description of the schema property", "type": "string", "default": "", "nullable": true } }, "required": [ "id", "name", "type" ] }, "AgentHints": { "description": "Optional hints emitted by the API for agent callers", "type": "object", "properties": { "next_steps": { "description": "Suggested follow-up actions for agents to take after this response", "type": "array", "items": { "type": "string" } } } }, "ObjectLinks": { "type": "object", "properties": { "self": { "type": "string", "format": "uri" } }, "required": [ "self" ] }, "ObjectSchemaConfigurationSubObject": { "type": "object", "properties": { "searchable_property_ids": { "description": "Property IDs whose values are indexed for full-text search.", "type": "array", "items": { "type": "integer" } }, "primary_image_url_property_id": { "description": "Property ID whose value is the primary image URL for a record.", "type": "integer", "nullable": true }, "thumbnail_image_url_property_id": { "description": "Property ID whose value is the thumbnail image URL for a record.", "type": "integer", "nullable": true }, "record_explorer_display_property_ids": { "description": "Ordered list of property IDs to display in the record explorer.", "type": "array", "items": { "type": "integer" } }, "title_property_id": { "description": "The property ID to use as the Object Record title.", "type": "integer" } }, "required": [ "searchable_property_ids", "record_explorer_display_property_ids", "title_property_id" ] }, "ObjectSchemaEnum": { "type": "string", "enum": [ "object-schema" ] }, "ObjectSchemaPartialUpdateQueryV2": { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/ObjectSchemaPartialUpdateQueryV2ResourceObject" } }, "required": [ "data" ] }, "ObjectSchemaPartialUpdateQueryV2ResourceObject": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/ObjectSchemaEnum" }, "id": { "description": "The ULID ID of the object schema.", "type": "string", "example": "01K61DKJ7EKJ0ES9VE456XF5JG" }, "attributes": { "type": "object", "properties": { "title": { "description": "The title for this object schema", "type": "string", "nullable": true }, "properties": { "description": "Properties of the object schema", "type": "array", "items": { "$ref": "#/components/schemas/APISchemaProperty" }, "nullable": true }, "description": { "description": "The description of this object schema", "type": "string", "nullable": true }, "status": { "description": "The status to move this object schema to. Only `active` and `draft` may be written; setting `active` activates the schema. While activation is in progress, reads may report a `publishing` status.", "type": "string", "enum": [ "active", "draft" ], "nullable": true }, "required": { "description": "Properties that are required on the object schema", "type": "array", "items": { "type": "string" }, "nullable": true }, "configuration": { "description": "Display and search configuration. Full-replace: all fields must be provided.", "$ref": "#/components/schemas/ObjectSchemaConfigurationSubObject", "nullable": true } } } }, "required": [ "type", "id", "attributes" ] }, "PatchObjectSchemaResponseV2": { "type": "object", "properties": { "data": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/ObjectSchemaEnum" }, "id": { "description": "The ULID ID of the object schema", "type": "string", "example": "01K61DKJ7EKJ0ES9VE456XF5JG" }, "attributes": { "type": "object", "properties": { "title": { "description": "The title for this object schema", "type": "string" }, "description": { "description": "The description of this object schema", "type": "string" }, "status": { "description": "The status of this object schema", "type": "string", "enum": [ "active", "draft", "publishing", "undefined" ] }, "properties": { "description": "Properties of the object schema", "type": "array", "items": { "$ref": "#/components/schemas/APISchemaProperty" } }, "required": { "description": "Properties that are required on the object schema", "type": "array", "items": { "type": "string" } }, "published_at": { "description": "The datetime when this object schema was activated", "type": "string", "format": "date-time", "example": "2022-11-08T00:00:00+00:00", "nullable": true }, "visibility": { "description": "The visibility of this object schema", "type": "string", "enum": [ "private", "shared" ] }, "configuration": { "description": "Display and search configuration for this object schema.", "$ref": "#/components/schemas/ObjectSchemaConfigurationSubObject" } }, "required": [ "title", "description", "status", "properties", "required", "visibility", "configuration" ] }, "relationships": { "type": "object", "properties": { "source-mapping": { "type": "object", "properties": { "data": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/SourceMappingEnum" }, "id": { "description": "The source mapping for this object schema", "type": "string" } }, "required": [ "type", "id" ] }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } } }, "object-schemas": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "type", "id" ], "properties": { "type": { "$ref": "#/components/schemas/ObjectSchemaEnum" }, "id": { "description": "The object schema relationships for this object schema", "type": "string" } } } }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } } }, "profile-object-schemas": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "type", "id" ], "properties": { "type": { "$ref": "#/components/schemas/ProfileObjectSchemaEnum" }, "id": { "description": "The profile object schema relationships for this object schema", "type": "string" } } } }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } } } } }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "type", "id", "attributes", "links" ] }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data" ] }, "ProfileObjectSchemaEnum": { "type": "string", "enum": [ "profile-object-schema" ] }, "RelationshipLinks": { "type": "object", "properties": { "self": { "type": "string", "format": "uri" }, "related": { "type": "string", "format": "uri" } }, "required": [ "self", "related" ] }, "ResponseMeta": { "description": "Response-level metadata", "type": "object", "properties": { "agent_hints": { "$ref": "#/components/schemas/AgentHints" } } }, "SourceMappingEnum": { "type": "string", "enum": [ "source-mapping" ] } }, "securitySchemes": { "Klaviyo-API-Key": { "type": "apiKey", "in": "header", "name": "Authorization", "description": "Private key authentication for /api/ endpoints is performed by setting the `Authorization` header to `Klaviyo-API-Key your-private-api-key`
For more information please visit https://developers.klaviyo.com/en/v2026-07-15.pre/reference/api-overview#authentication", "x-default": "Klaviyo-API-Key your-private-api-key" } } }, "tags": [ { "name": "Beta APIs", "description": "beta apis" } ] }