Skip to main content

Update List

Partially update a list. Only provided fields will be updated.

Request

PATCH /lists/{uuid}

Path Parameters

ParameterTypeDescription
uuidstringList's UUID

Request Body

All fields are optional. Only include fields you want to update.

ParameterTypeDescription
namestringList name (max 255 characters)
descriptionstring|nullPublic description (max 1000 characters). Send null to clear.
is_publicbooleanWhether the list is public

Example Request

curl -X PATCH "https://email.easy.tools/api/v1/lists/list-uuid-123" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Updated Newsletter",
"description": "Updated description"
}'

Example Request (clearing description)

curl -X PATCH "https://email.easy.tools/api/v1/lists/list-uuid-123" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"description": null
}'

Response

Success Response (200 OK)

{
"data": {
"uuid": "list-uuid-123",
"name": "Updated Newsletter",
"description": "Updated description",
"is_public": true,
"contacts_count": 150,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-16T14:00:00Z"
}
}

Response Fields

FieldTypeDescription
uuidstringList's unique identifier
namestringList name
descriptionstring|nullPublic description
is_publicbooleanWhether the list is public
contacts_countintegerNumber of contacts in the list
created_atstringISO 8601 timestamp (UTC)
updated_atstringISO 8601 timestamp (UTC)

Error Responses

Not Found Error (404)

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "List with uuid 'list-uuid-123' not found"
}
}

Validation Error (422 Unprocessable Entity)

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"name": ["The name must not be greater than 255 characters."]
}
}
}