---
title: "Create Profile Schema Relationship"
description: "How to call Create Profile Schema Relationship (POST /api/object-schemas/{id}/relationships/profile-object-schemas) 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/create_profile_schema_relationship"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_profile_schema_relationship"
operationId: "create_profile_schema_relationship"
aliases: ["add_profile_object_schemas_to_object_schema","create_object_schema_relationships_profile_object_schemas"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/object-schemas/{id}/relationships/profile-object-schemas"
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/create_profile_schema_relationship.json"
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/update_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/update_profile_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_profile_schema_relationship.md"]
---

# Create Profile Schema Relationship

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

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

Create a relationship between an object schema and a profile

- 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/create_profile_schema_relationship.json)

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/object-schemas/01K61DKJ7EKJ0ES9VE456XF5JG/relationships/profile-object-schemas' \
     --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": "profile-object-schema",
      "id": "profile"
    }
  ]
}'
```

## Path parameters

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

## 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: `profile-object-schema`
  - `id` (string, required): The ID of the profile schema. The profile schema does not exist as a persisted resource, so this value is always "profile". Example: `profile`
  - `meta` (object)
    - `name` (string, required): The name of the relationship Example: `subscription`
    - `description` (string, nullable): The description of the relationship Default: `` Example: `The subscription this pet is enrolled in`

### Example request body

```json
{
  "data": [
    {
      "type": "profile-object-schema",
      "id": "profile"
    }
  ]
}
```

## Responses

### 204: Success

This response has no body.

### 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"
      }
    }
  ]
}
```
