Update client tag
This endpoint allows users to update a company client tag.
PUT
/api/v2/companysettings/clienttags/{TagGUID}
curl \
-X PUT https://api.fincalc.co.uk/api/v2/companysettings/clienttags/{TagGUID} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"TagName":"Accumulation","TagColour":"#000FFF"}'
Request examples
{
"TagName": "Accumulation",
"TagColour": "#000FFF"
}
Response examples (200)
{
"success": true,
"data": {
"TagGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"CompanyID": 2,
"TagName": "Accumulation",
"TagColour": "#000FFF",
"TotalUsingTag": 14,
"FormattedValues": {
"CompanyID": "FinCalc"
}
}
}
Response examples (403)
{
"success": false,
"message": "You do not have permission to update company client tags."
}
Response examples (422)
{
"success": false,
"message": "Validation Error",
"data": {
"TagName": [
"The tag name field is required."
]
}
}