Skip to main content
PUT
/
user
/
label
/
{id}
Update label
curl --request PUT \
  --url https://app.autocalls.ai/api/user/label/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": "<string>"
}
'
{
  "message": "Label updated successfully",
  "data": { "id": 3, "name": "Inbound calls", "color": "teal", "assistants_count": 7 }
}
Update a label’s name or color. Only the fields you send are changed.

Path Parameters

id
integer
required
The label ID. Must belong to your account.

Request Body

name
string
New name (max 255 characters). Must be unique within your account.
color
string
New color. One of: gray, slate, red, orange, amber, green, teal, blue, purple, pink. Send null to clear it.

Response

message
string
Success message
data
object
{
  "message": "Label updated successfully",
  "data": { "id": 3, "name": "Inbound calls", "color": "teal", "assistants_count": 7 }
}