---
title: "Update Object Schema"
description: "How to call Update Object Schema (PATCH /api/object-schemas/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/update_object_schema"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_object_schema"
operationId: "update_object_schema"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/object-schemas/{id}"
authentication: "privateKey"
scopes: ["custom-objects:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json"
jsonApi: {"fields":{"object-schema":["description","id","properties","published_at","required","status","title","visibility"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_source_mapping_for_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_source_mapping_id_for_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema_relationships.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_profile_schema_relationships.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_profile_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_profile_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_profile_schema_relationship.md"]
---

# Update Object Schema

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/update_object_schema

```http
PATCH https://a.klaviyo.com/api/object-schemas/{id}
```

Update the object schema with the given ID.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `custom-objects:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json)

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/object-schemas/01K61DKJ7EKJ0ES9VE456XF5JG' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "object-schema",
    "id": "01K61DKJ7EKJ0ES9VE456XF5JG",
    "attributes": {}
  }
}'
```

## Path parameters

- `id` (string, required): The ULID ID of the object schema. Example: `01K61DKJ7EKJ0ES9VE456XF5JG`

## Query parameters

- `fields[object-schema]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `description`, `id`, `properties`, `published_at`, `required`, `status`, `title`, `visibility`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `object-schema`
  - `id` (string, required): The ULID ID of the object schema. Example: `01K61DKJ7EKJ0ES9VE456XF5JG`
  - `attributes` (object, required)
    - `title` (string, nullable): The title for this object schema
    - `properties` (object[], nullable): Properties of the object schema
      - `id` (integer, required): The ID of the schema property. Must be a postive integer. Example: `1`
      - `name` (string, required): The name of the schema property Example: `service_plan`
      - `type` (string, required): The type of the schema property Allowed values: `boolean`, `float`, `int`, `list_str`, `string`, `timestamp`
      - `description` (string, nullable): The description of the schema property Default: ``
    - `description` (string, nullable): The description of this object schema
    - `status` (string, nullable): 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. Allowed values: `active`, `draft`
    - `required` (string[], nullable): Properties that are required on the object schema

### Example request body

```json
{
  "data": {
    "type": "object-schema",
    "id": "01K61DKJ7EKJ0ES9VE456XF5JG",
    "attributes": {}
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `object-schema`
  - `id` (string, required): The ULID ID of the object schema Example: `01K61DKJ7EKJ0ES9VE456XF5JG`
  - `attributes` (object, required)
    - `title` (string, required): The title for this object schema
    - `description` (string, required): The description of this object schema
    - `status` (string, required): The status of this object schema Allowed values: `active`, `draft`, `publishing`, `undefined`
    - `properties` (object[], required): Properties of the object schema Same fields as APISchemaProperty in the request body above.
    - `required` (string[], required): Properties that are required on the object schema
    - `published_at` (string<date-time>, nullable): The datetime when this object schema was activated Example: `2022-11-08T00:00:00+00:00`
    - `visibility` (string, required): The visibility of this object schema Allowed values: `private`, `shared`
  - `relationships` (object)
    - `source-mapping` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
    - `object-schemas` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
    - `profile-object-schemas` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/update_object_schema.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "object-schema",
    "id": "01K61DKJ7EKJ0ES9VE456XF5JG",
    "attributes": {
      "title": "string",
      "description": "string",
      "status": "active",
      "properties": [
        {
          "id": 1,
          "name": "service_plan",
          "type": "boolean",
          "description": ""
        }
      ],
      "required": [
        "string"
      ],
      "published_at": "2022-11-08T00:00:00+00:00",
      "visibility": "private"
    },
    "relationships": {
      "source-mapping": {
        "data": {
          "type": "source-mapping",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "object-schemas": {
        "data": [
          {
            "type": "object-schema",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "profile-object-schemas": {
        "data": [
          {
            "type": "profile-object-schema",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
