v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
issues

Remove a label from an issue

Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a 404 Not Found status if the label does not exist.

delete/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

issue_numberinteger required

The number that identifies the issue.

namestring required

Response

Response

idinteger required
node_idstring required
urlstring uri required

URL for the label

namestring required

The name of the label.

descriptionstring nullable required
colorstring required

6-character hex code, without the leading #, identifying the color

defaultboolean required

Example response

[
  {
    "id": 208045946,
    "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
    "url": "https://api.github.com/repositories/42/labels/bug",
    "name": "bug",
    "description": "Something isn't working",
    "color": "FFFFFF",
    "default": true
  }
]