Update a list

Update a list

patch

Update the specified list given its ID. This endpoint allows you to update the list's name, description, consent type, tags, and isProof flag.

Authorizations
Path parameters
workspaceIdstring · uuidrequired

Your workspace identifier.

Example: b4e02c85-c6d2-4b15-8885-e09671799c61
listIdstring · uuidrequired

The ID of a list.

Example: b4e02c85-c6d2-4b15-8885-e09671799c61
Body
namestring · min: 2 · max: 256optional

Name

Example: US Customers
descriptionstring | nullableoptional
Example: A list of all US customers
consentTypestring · enum | nullableoptional

The consent type for the list.

Options: single, double
tagsstring · uuid[] | nullableoptional
Example: 123e4567-e89b-12d3-a456-426614174000
isProofboolean | nullableoptional

The list is used as a proof list to use it as a test list in campaigns.

Responses
curl -L \
  --request PATCH \
  --url 'https://api.bird.com/workspaces/{workspaceId}/lists/{listId}' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "US Customers",
    "description": "A list of all US customers",
    "consentType": "single",
    "tags": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "isProof": true
  }'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "US Customers",
  "description": "A list of all US customers",
  "createdAt": "2025-03-29T10:24:18.182Z",
  "updatedAt": "2025-03-29T10:24:18.182Z",
  "contactCount": 100,
  "consentType": "single",
  "tags": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "isProof": true,
  "counter": {
    "count": 1,
    "updatedAt": "2025-03-29T10:24:18.182Z"
  }
}

Examples

Let's establish some of our data that will be used in the following examples:

  • Workspace ID: a1405560-c8d3-4b1a-877d-3f449ad95352

  • AccessKey: abcd

  • List ID: 123e4567-e89b-12d3-a456-426614174000

Update a list

In this example, we're updating a list given its ID.

curl -X PATCH "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/lists" \
-H "Content-Type: application/json" \
-H "Authorization: AccessKey abcd" \
-d '{
  "name": "US Customers (old)",
  "description": "US Customers"
}'

Last updated

Was this helpful?