Update a label
Path Parameters
Body
application/json
Body
The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry:
will render the emoji . For a full list of available emoji and codes, see “Emoji cheat sheet.”
The hexadecimal color code for the label, without the leading #
.
A short description of the label. Must be 100 characters or fewer.
Response
200 application/json
Response
Response
Label
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
Example:208045946
Example:MDU6TGFiZWwyMDgwNDU5NDY=
URL for the label
Example:https://api.github.com/repositories/42/labels/bug
The name of the label.
Example:bug
Example:Something isn't working
6-character hex code, without the leading #, identifying the color
Example:FFFFFF
Example:true
Path Parameters
Body
Delete a label
Path Parameters
Response
204
Response
Response
Path Parameters
List milestones
Query Parameters
The state of the milestone. Either open
, closed
, or all
.
Allowed values:openclosedall
Default:open
What to sort results by. Either due_on
or completeness
.
Allowed values:due_oncompleteness
Default:due_on
The direction of the sort. Either asc
or desc
.
Allowed values:ascdesc
Default:asc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
A collection of related issues and pull requests.
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1
Example:https://github.com/octocat/Hello-World/milestones/v1.0
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1/labels
Example:1002604
Example:MDk6TWlsZXN0b25lMTAwMjYwNA==
The number of the milestone.
Example:42
The state of the milestone.
Allowed values:openclosed
Default:open
Example:open
The title of the milestone.
Example:v1.0
Example:Tracking milestone for version 1.0
Simple User
Show Child Parameters
Example:4
Example:8
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
Example:2013-02-12T13:22:01Z
Example:2012-10-09T23:39:01Z
Path Parameters
Query Parameters
Create a milestone
Path Parameters
Body
application/json
Body
The title of the milestone.
The state of the milestone. Either open
or closed
.
Allowed values:openclosed
Default:open
A description of the milestone.
The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
Response
application/json
Response
Response
Milestone
A collection of related issues and pull requests.
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1
Example:https://github.com/octocat/Hello-World/milestones/v1.0
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1/labels
Example:1002604
Example:MDk6TWlsZXN0b25lMTAwMjYwNA==
The number of the milestone.
Example:42
The state of the milestone.
Allowed values:openclosed
Default:open
Example:open
The title of the milestone.
Example:v1.0
Example:Tracking milestone for version 1.0
Simple User
Show Child Parameters
Example:4
Example:8
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
Example:2013-02-12T13:22:01Z
Example:2012-10-09T23:39:01Z
Path Parameters
Body
Get a milestone
Path Parameters
milestone_number parameter
Response
application/json
Response
Response
Milestone
A collection of related issues and pull requests.
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1
Example:https://github.com/octocat/Hello-World/milestones/v1.0
Example:https://api.github.com/repos/octocat/Hello-World/milestones/1/labels
Example:1002604
Example:MDk6TWlsZXN0b25lMTAwMjYwNA==
The number of the milestone.
Example:42
The state of the milestone.
Allowed values:openclosed
Default:open
Example:open
The title of the milestone.
Example:v1.0
Example:Tracking milestone for version 1.0
Simple User
Show Child Parameters
Example:4
Example:8
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
Example:2013-02-12T13:22:01Z
Example:2012-10-09T23:39:01Z