| <aid="mutationlabelcreatedescription"></a>`description` | [`String`](#string) | Description of the label. |
| <aid="mutationlabelcreategrouppath"></a>`groupPath` | [`ID`](#id) | Full path of the group with which the resource is associated. |
| <aid="mutationlabelcreateprojectpath"></a>`projectPath` | [`ID`](#id) | Full path of the project with which the resource is associated. |
| <aid="mutationlabelcreateremoveonclose"></a>`removeOnClose` | [`Boolean`](#boolean) | Whether the label should be removed from an issue when the issue is closed. |
| <aid="mutationlabelcreatetitle"></a>`title` | [`String!`](#string) | Title of the label. |
#### Fields
...
...
@@ -9743,7 +9742,6 @@ four standard [pagination arguments](#connection-pagination-arguments):
| <aid="labeldescription"></a>`description` | [`String`](#string) | Description of the label (Markdown rendered as HTML for caching). |
| <aid="labeldescriptionhtml"></a>`descriptionHtml` | [`String`](#string) | The GitLab Flavored Markdown rendering of `description`. |
| <aid="labelremoveonclose"></a>`removeOnClose` | [`Boolean!`](#boolean) | Whether the label should be removed from an issue when the issue is closed. |
| <aid="labeltextcolor"></a>`textColor` | [`String!`](#string) | Text color of the label. |
| <aid="labeltitle"></a>`title` | [`String!`](#string) | Content of the label. |
| <aid="labelupdatedat"></a>`updatedAt` | [`Time!`](#time) | When this label was last updated. |
| `color` | string | yes | The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
| `description` | string | no | The description of the label |
| `priority` | integer | no | The priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
| `remove_on_close` | boolean | no | Whether the label should be removed from an issue when the issue is closed. _([Introduced in GitLab 13.12](https://gitlab.com/gitlab-org/gitlab/-/issues/17461))_ |
@@ -228,7 +220,6 @@ PUT /projects/:id/labels/:label_id
| `color` | string | yes if `new_name` is not provided | The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
| `description` | string | no | The new description of the label |
| `priority` | integer | no | The new priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
| `remove_on_close` | boolean | no | Boolean option specifying whether the label should be removed from issues when they are closed. |
```shell
curl --request PUT --data"new_name=docs&color=#8E44AD&description=Documentation"--header"PRIVATE-TOKEN: <your_access_token>""https://gitlab.example.com/api/v4/projects/1/labels/documentation"
optional:description,type: String,desc: 'The description of the label'
optional:remove_on_close,type: Boolean,desc: 'Whether the label should be removed from an issue when the issue is closed'
end
params:label_create_paramsdo
requires:name,type: String,desc: 'The name of the label to be created'
requires:color,type: String,desc: "The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the allowed CSS color names"
use:optional_label_params
optional:description,type: String,desc: 'The description of label to be created'
end
params:label_update_paramsdo
optional:new_name,type: String,desc: 'The new name of the label'
optional:color,type: String,desc: "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"
use:optional_label_params
optional:description,type: String,desc: 'The new description of label'
end
params:project_label_update_paramsdo
use:label_update_params
optional:priority,type: Integer,desc: 'The priority of the label',allow_blank: true