Update a custom column
patch
/v1/custom-columns/{custom_column_id}Partial update; all attributes optional, nullable fields accept null to clear.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| custom_column_id | string <uuid> | Yes | ID.e.g. 00000000-0000-4000-8000-000000000000 |
Request
cURL
curl -X PATCH https://api.wellapp.ai/v1/custom-columns/{custom_column_id} \
-H "Authorization: Bearer $WELL_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "custom_column",
"attributes": {
"name": "Burn risk"
}
}
}'Request body
{
"data": {
"type": "custom_column",
"attributes": {
"name": "Burn risk"
}
}
}Responses
200 — Updated custom column.
{
"data": {
"type": "custom_column",
"id": "cc_1",
"attributes": {
"name": "Burn risk"
},
"relationships": {
"values": {
"data": [
{
"type": "custom_column_value",
"id": "00000000-0000-4000-8000-000000000001"
}
]
}
}
}
}400 — Validation error.
{
"code": "BAD_REQUEST",
"status": 400,
"title": "Bad Request",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}401 — Unauthorized.
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Not found.
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}