| `color` | string | yes | The color of the label in 6-digit hex notation with leading `#` sign |
| `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 |
| `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. |
| `priority` | integer | no | The priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
...
@@ -145,7 +145,7 @@ PUT /projects/:id/labels
...
@@ -145,7 +145,7 @@ PUT /projects/:id/labels
| `id` | integer | yes | The ID of the project |
| `id` | integer | yes | The ID of the project |
| `name` | string | yes | The name of the existing label |
| `name` | string | yes | The name of the existing label |
| `new_name` | string | yes if `color` is not provided | The new name of the label |
| `new_name` | string | yes if `color` is not provided | The new name of the label |
| `color` | string | yes if `new_name` is not provided | The new color of the label in 6-digit hex notation with leading `#` sign |
| `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 |
| `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. |
| `priority` | integer | no | The new priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
requires:name,type: String,desc: 'The name of the label to be created'
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)"
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"
optional:description,type: String,desc: 'The description of label to be created'
optional:description,type: String,desc: 'The description of label to be created'
optional:priority,type: Integer,desc: 'The priority of the label',allow_blank: true
optional:priority,type: Integer,desc: 'The priority of the label',allow_blank: true
requires:name,type: String,desc: 'The name of the label to be updated'
requires:name,type: String,desc: 'The name of the label to be updated'
optional:new_name,type: String,desc: 'The new name of the label'
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)"
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"
optional:description,type: String,desc: 'The new description of label'
optional:description,type: String,desc: 'The new description of label'
optional:priority,type: Integer,desc: 'The priority of the label',allow_blank: true
optional:priority,type: Integer,desc: 'The priority of the label',allow_blank: true