Create a milestone
/repos/{owner}/{repo}/milestones- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Body Params
requiredA description of the milestone.
The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
The state of the milestone. Either `open` or `closed`.
The title of the milestone.
Responses
Response
Headers
Example: https://api.github.com/repos/octocat/Hello-World/milestones/1
Example: 2013-02-12T13:22:01Z
Example: 8
Example: 2011-04-10T20:09:31Z
creator Simple User objectrequirednullable Simple User
Simple User
Example: https://github.com/images/error/octocat_happy.gif
Example: https://api.github.com/users/octocat/events{/privacy}
Example: https://api.github.com/users/octocat/followers
Example: https://api.github.com/users/octocat/following{/other_user}
Example: https://api.github.com/users/octocat/gists{/gist_id}
Example: 41d064eb2195891e12d0413f63227ea7
Example: https://github.com/octocat
Example: 1
Example: octocat
Example: MDQ6VXNlcjE=
Example: https://api.github.com/users/octocat/orgs
Example: https://api.github.com/users/octocat/received_events
Example: https://api.github.com/users/octocat/repos
Example: "2020-07-09T00:17:55Z"
Example: https://api.github.com/users/octocat/starred{/owner}{/repo}
Example: https://api.github.com/users/octocat/subscriptions
Example: User
Example: https://api.github.com/users/octocat
Example: Tracking milestone for version 1.0
Example: 2012-10-09T23:39:01Z
Example: https://github.com/octocat/Hello-World/milestones/v1.0
Example: 1002604
Example: https://api.github.com/repos/octocat/Hello-World/milestones/1/labels
Example: MDk6TWlsZXN0b25lMTAwMjYwNA==
The number of the milestone.
Example: 42
Example: 4
The state of the milestone.
Example: open
The title of the milestone.
Example: v1.0
Example: 2014-03-03T18:58:10Z
Example: https://api.github.com/repos/octocat/Hello-World/milestones/1
Resource not found
Validation failed