---
title: "Update Universal Content"
description: "How to call Update Universal Content (PATCH /api/template-universal-content/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/update_universal_content"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_universal_content"
operationId: "update_universal_content"
aliases: ["update_template_universal_content"]
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/template-universal-content/{id}"
authentication: "privateKey"
scopes: ["templates:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/templates/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_all_universal_content.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_universal_content.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_universal_content.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_universal_content.md"]
---

# Update Universal Content

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/update_universal_content

```http
PATCH https://a.klaviyo.com/api/template-universal-content/{id}
```

Update universal content. The `definition` field can only be updated for text blocks at this time.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `templates:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

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

## Path parameters

- `id` (string, required): The ID of the template universal content Example: `01HWWWKAW4RHXQJCMW4R2KRYR4`

## Headers

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

## Request body

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `template-universal-content`
  - `id` (string, required): The ID of the template universal content Example: `01HWWWKAW4RHXQJCMW4R2KRYR4`
  - `attributes` (object, required)
    - `name` (string, nullable): The name for this template universal content
    - `definition` (oneOf, nullable)
      - One of:
        - Option 1: `HTMLBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `TextBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.

### Example request body

```json
{
  "data": {
    "type": "template-universal-content",
    "id": "01HWWWKAW4RHXQJCMW4R2KRYR4",
    "attributes": {}
  }
}
```

## Responses

### 200: Success

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `template-universal-content`
  - `id` (string, required): The ID of the universal content Example: `01HWWWKAW4RHXQJCMW4R2KRYR4`
  - `attributes` (object, required)
    - `name` (string, required): The name for this universal content
    - `definition` (oneOf, nullable)
      - One of:
        - Option 1: `ButtonBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `DropShadowBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `HeaderBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 4: `HorizontalRuleBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 5: `HTMLBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 6: `ImageBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 7: `ProductBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 8: `ReviewBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 9: `SocialBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 10: `SpacerBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 11: `SplitBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 12: `TableBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 13: `TextBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 14: `UnsupportedBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 15: `VideoBlock` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 16: `Section` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `created` (string<date-time>, required): The datetime when this universal content was created Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, required): The datetime when this universal content was updated Example: `2022-11-08T00:00:00+00:00`
    - `screenshot_status` (string, required): The status of a universal content screenshot. Allowed values: `completed`, `failed`, `generating`, `never_generated`, `not_renderable`, `stale`
    - `screenshot_url` (string, required)
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "template-universal-content",
    "id": "01HWWWKAW4RHXQJCMW4R2KRYR4",
    "attributes": {
      "name": "string",
      "definition": {
        "content_type": "block",
        "type": "button",
        "data": "string"
      },
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "screenshot_status": "completed",
      "screenshot_url": "string"
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

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