issues
Create a label
Creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid hexadecimal color code.
post/repos/{owner}/{repo}/labels
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.
Request body
Response
Response
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
}