# Update Tag (v2) Updates an existing tag. Endpoint: PUT /v2/companies/{company_id}/tags/{tag_id} Version: 1.0.1 Security: BearerPartnerUser ## Header parameters: - `Accept` (string, required) - `Content-Type` (string, required) - `Authorization` (string, required) Bearer {partner_token}, User {user_token} ## Path parameters: - `company_id` (integer, required) Company (location) ID - `tag_id` (integer, required) Tag ID ## Request fields (application/json): - `title` (string) Tag name Example: "VIP Client" - `color` (string) Tag color in Example: "#ff2828" - `entity` (integer) Entity type (0 - general, 1 - client, 2 - appointment, 3 - activity) Enum: 0, 1, 2, 3 - `icon` (string) Icon name Example: "star" ## Response 401 fields (application/json): - `success` (boolean) - `data` (null) - `meta` (object) ## Response 403 fields (application/json): - `success` (boolean) - `data` (null) - `meta` (object) - `meta.message` (string) Example: "Category cannot be changed" ## Response 404 fields (application/json): - `success` (boolean) - `data` (null) - `meta` (object) - `meta.message` (string) Example: "Not found" ## Response 422 fields (application/json): - `success` (boolean) - `data` (null) - `meta` (object) - `meta.message` (string) ## Response 204 fields