---
title: "Update List"
description: "How to call Update List (PATCH /api/lists/{id}/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2023-10-15/reference/update_list"
revision: "2023-10-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_list"
operationId: "update_list"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/lists/{id}/"
authentication: "privateKey"
scopes: ["list:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2023-10-15/reference/lists/llms.txt","https://developers.klaviyo.com/en/v2023-10-15/reference/get_lists.md","https://developers.klaviyo.com/en/v2023-10-15/reference/create_list.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_list.md","https://developers.klaviyo.com/en/v2023-10-15/reference/delete_list.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_tags.md","https://developers.klaviyo.com/en/v2023-10-15/reference/create_list_relationships.md","https://developers.klaviyo.com/en/v2023-10-15/reference/delete_list_relationships.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_profiles.md"]
---

# Update List

> This is the Markdown version of https://developers.klaviyo.com/en/v2023-10-15/reference/update_list

```http
PATCH https://a.klaviyo.com/api/lists/{id}/
```

Update the name of a list with the given list ID.

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

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/lists/Y6nRLr/' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/json' \
     --header 'revision: 2023-10-15' \
     --header 'content-type: application/json' \
     --data '{
  "data": {
    "type": "list",
    "id": "Y6nRLr",
    "attributes": {
      "name": "Newsletter"
    }
  }
}'
```

## Path parameters

- `id` (string, required): Primary key that uniquely identifies this list. Generated by Klaviyo. Example: `Y6nRLr`

## Headers

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

## Request body

Content type: `application/json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `list`
  - `id` (string, required): Primary key that uniquely identifies this list. Generated by Klaviyo. Example: `Y6nRLr`
  - `attributes` (object, required)
    - `name` (string, required): A helpful name to label the list Example: `Newsletter`

### Example request body

```json
{
  "data": {
    "type": "list",
    "id": "Y6nRLr",
    "attributes": {
      "name": "Newsletter"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `list`
  - `id` (string, required): Primary key that uniquely identifies this list. Generated by Klaviyo. Example: `Y6nRLr`
  - `attributes` (object, required)
    - `name` (string): A helpful name to label the list Example: `Newsletter`
    - `created` (string<date-time>): Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00`
    - `updated` (string<date-time>): Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00`
  - `relationships` (object)
    - `profiles` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tags` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "list",
    "id": "Y6nRLr",
    "attributes": {
      "name": "Newsletter",
      "created": "2022-11-08T00:00:00",
      "updated": "2022-11-08T00:00:00"
    },
    "relationships": {
      "profiles": {
        "data": [
          {
            "type": "profile",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "tags": {
        "data": [
          {
            "type": "tag",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/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/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"
      }
    }
  ]
}
```
