create_label
Add a label to a GitLab project with name, color, and project ID. Optionally set priority and description; validation, permission, or rate-limit errors are returned for invalid requests.
Instructions
Create a new label in a project. Use this for a new resource or action; choose the corresponding update or edit tool when the resource already exists. It changes remote GitLab state and requires the necessary project or group permission; GitLab returns validation, conflict, permission, or rate-limit errors instead of silently applying an invalid request. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the label | |
| color | Yes | The color of the label given in 6-digit hex notation with leading '#' sign | |
| priority | No | The priority of the label | |
| project_id | Yes | Project ID or URL-encoded path | |
| description | No | The description of the label |