Update labels
Code Mode: praxis.ticket.labels.update
HTTP: PATCH /ticket/v1/labels/{name}
Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
Signature
praxis.ticket.labels.update(args:{path:{/** Resource path value. */ name:string};query?:{/** Opaque repository id. */ repository?:string};body:{/** Six hexadecimal digits without #. pattern: ^[0-9a-fA-F]{6}$ e.g. "d73a4a" */ color?:string;/** Label's purpose. */ description?:string;/** Case-insensitive label name within the repository. */ new_name?:string}}):Promise<{/** Opaque identifier returned by this resource's create or list operation. */ id:string;/** Case-insensitive label name within the repository. */ name:string;/** Six hexadecimal digits without #. pattern: ^[0-9a-fA-F]{6}$ e.g. "d73a4a" */ color:string;/** Label's purpose. */ description:string;/** Whether this is a default label. */ is_default:boolean}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| name | path | string | yes | Label name from the repository label list. |
| repository | query | string | no | Repository id from GET /ticket/v1/repositories; omit for the default tickets container. |
Request body
| Required | Content types | Description |
|---|---|---|
| yes | application/json |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The operation succeeded; the body contains the requested resource or page. |
| 400 | Invalid native input or unsupported GitHub API version; correct the request before retrying. | |
| 401 | Credentials are absent or invalid; supply a valid API key or signed browser session. | |
| 403 | Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers. | |
| 404 | Resource or repository is absent from this organization; a different owner has the identical missing-resource response. | |
| 410 | Ticket is gone; refresh the repository’s ticket list. | |
| 422 | Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships. | |
| 429 | Native rate limit; wait for retry-after before retrying. |