List all labels for a repository GET /repos/:username/:reponame/labels
[ { "id" : 3 , "name" : " feature" , "color" : " #70c24a" }, { "id" : 4 , "name" : " bug" , "color" : " #e11d21" }, { "id" : 5 , "name" : " enhancement" , "color" : " #207de5" } ] GET /repos/:username/:reponame/labels/:id
{ "id" : 3 , "name" : " feature" , "color" : " #70c24a" } POST /repos/:username/:reponame/labels
Name Type Description name string Required The name of the labelcolor string Required A 7 character hex code with the leading #, identifying the color
{ "name" : " something" , "color" : " #123123" } { "id" : 7 , "name" : " something" , "color" : " #123123" } PATCH /repos/:username/:reponame/labels/:id
Name Type Description name string The name of the label color string A 7 character hex code with the leading #, identifying the color
DELETE /repos/:username/:reponame/labels/:id
GET /repos/:username/:reponame/issues/:index/labels
[ { "id" : 3 , "name" : " feature" , "color" : " #70c24a" }, { "id" : 4 , "name" : " bug" , "color" : " #e11d21" }, { "id" : 5 , "name" : " enhancement" , "color" : " #207de5" } ] POST /repos/:username/:reponame/issues/:index/labels
[ { "id" : 3 , "name" : " feature" , "color" : " #70c24a" }, { "id" : 4 , "name" : " bug" , "color" : " #e11d21" }, { "id" : 5 , "name" : " enhancement" , "color" : " #207de5" } ] Remove a label from an issue DELETE /repos/:username/:reponame/issues/:index/labels/:id
Replace all labels for an issue PUT /repos/:username/:reponame/issues/:index/labels
[ { "id" : 5 , "name" : " enhancement" , "color" : " #207de5" }, { "id" : 6 , "name" : " feature" , "color" : " #70c24a" } ] Remove all labels from an issue DELETE /repos/:username/:reponame/issues/:index/labels