Update Label
Updates an existing label with new name or color information.
Request
The ID of the label to update
Hex color code for the label (e.g., “#ff0000” for red)
{
"name": "Updated Product Launch",
"color": "#00ff00"
}
Response
Unique identifier for the updated label
The updated name of the label
The updated hex color code of the label
Information about the label’s workspace
Creation timestamp in workspace timezone
Last update timestamp in workspace timezone
{
"id": 16,
"name": "Updated Product Launch",
"color": "#00ff00"
"workspace": {
"id": 12,
"name": "abdulmejidshemsuawel",
"slug": "abdulmejidshemsuawel",
"type": "PERSONAL",
"logo": null,
"timezone": "Africa/Addis_Ababa",
"language": "en"
}
}
Code Examples
curl -X PUT "https://postsyncer.com/api/v1/labels/123" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Product Launch",
"color": "#00ff00"
}'
Error Codes
Validation errors or invalid parameters
Missing or invalid API token
Token does not have ‘labels’ permission
Label not found or user does not have access to the label’s workspace
Validation errors in request data