Update a group label
PUT
/api/v4/groups/{id}/labels/{name}
Updates a specified group label. At least one parameter is required to update the group label.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The ID of a group
name
required
string
The name or id of the label to be updated
Request Body
Section titled “Request Body”Media typeapplication/json
object
new_name
The new name of the label
string
color
The new color of the label given in 6-digit hex notation with leading ‘#’ sign (e.g. #FFAABB) or one of the allowed CSS color names
string
description
The new description of label
string
archived
Whether the label is archived
boolean
Examplegenerated
{ "new_name": "example", "color": "example", "description": "example", "archived": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
integer format: int64
name
string
description
string
text_color
string
description_html
string
color
string
archived
boolean
open_issues_count
integer
closed_issues_count
integer
open_merge_requests_count
integer
subscribed
boolean
Example
{ "id": 1, "name": "bug", "description": "Bug reported by user", "text_color": "#FFFFFF", "description_html": "<p>Bug reported by user</p>", "color": "#FF0000", "archived": false, "open_issues_count": 1, "closed_issues_count": 0, "open_merge_requests_count": 1, "subscribed": false}Bad Request
Not Found