emailsUpdated reports how many were touched — it is 0 when the label exists but is not applied to anything.color to change the colour in the same call.{
"userId": "K5PF9Y068AMDGENV5BTCNJJZK55F",
"account": "andrew.lawyer@aurumlawyer.com",
"oldLabelName": "Priority",
"newLabelName": "High Priority"
}curl --location --request PUT 'https://customers.coldmailreseller.com/api/v1/integration/onebox/labels' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "K5PF9Y068AMDGENV5BTCNJJZK55F",
"account": "andrew.lawyer@aurumlawyer.com",
"oldLabelName": "Priority",
"newLabelName": "High Priority",
"color": "#FF5500"
}'{
"status": 200,
"message": "Label renamed",
"data": {
"oldLabelName": "Priority",
"newLabelName": "High Priority",
"color": "#FF5500",
"emailsUpdated": 0
}
}