|
| 1 | +--- |
| 2 | +kind:change |
| 3 | +title:Upcoming Change to Default Media Type |
| 4 | +created_at:2014-01-07 |
| 5 | +author_name:jasonrudolph |
| 6 | +--- |
| 7 | + |
| 8 | +On April 15, 2014[*](#cutover-test), the GitHub API will start serving the v3 media type by default. The information below will help you determine whether your applications will be affected by this change. For affected applications, you'll find tips below to help you smoothly navigate this change. |
| 9 | + |
| 10 | +##What's changing? |
| 11 | + |
| 12 | +###A new default version |
| 13 | + |
| 14 | +There are[two versions][versions] of the GitHub API:**beta** and**v3**. Today, requests receive the beta version by default. On April 15[*](#cutover-test), requests will begin receiving the v3 version by default. |
| 15 | + |
| 16 | +For the most part, beta and v3 are remarkably similar. There are[just a few differences][differences] to keep in mind. |
| 17 | + |
| 18 | +###A new default media type |
| 19 | + |
| 20 | +The version is one part of the[media type][media]. By default, the API provides the beta media type: |
| 21 | + |
| 22 | +application/vnd.github.beta+json |
| 23 | + |
| 24 | +On April 15[*](#cutover-test), requests will begin responding with the v3 media type by default: |
| 25 | + |
| 26 | +application/vnd.github.v3+json |
| 27 | + |
| 28 | +##Who is affected? |
| 29 | + |
| 30 | +Since 2012, we have encouraged developers to explicitly[request a specific media type via the`Accept` header][request-a-media-type]. If you are requesting either beta or v3 via the`Accept` header, then you are_not_ affected by this change. The API will continue to respond with the requested media type. |
| 31 | + |
| 32 | +If you are not requesting beta or v3 via the`Accept` header, then the API is currently responding with the beta media type. On April 15[*](#cutover-test), the API will begin responding with the v3 media type. If your application relies on[functionality that differs between beta and v3][differences], then you are affected by this change. You will need to take steps to prepare for the change. |
| 33 | + |
| 34 | +##What should you do? |
| 35 | + |
| 36 | +If you are affected by this change, we recommend that you: |
| 37 | + |
| 38 | +1. Update your applications to depend on the v3 functionality instead of the beta functionality. (If you use one of the popular[client libraries][libraries], there's a good chance that they've already done the work for you. In that case, you can just update to the latest version of that library.) |
| 39 | +2. Request the v3 media type via the`Accept` header. |
| 40 | + |
| 41 | +If you cannot update your application to depend on the v3 functionality by April 15[*](#cutover-test), you can just request the beta media type via the`Accept` header. Doing so will insulate you from this change. |
| 42 | + |
| 43 | +##Cutover test on March 12, 2014 {#cutover-test} |
| 44 | + |
| 45 | +To help you understand the impact of this change before it becomes permanent, we will temporarily implement this change for a single day on March 12. From approximately 12:01am UTC to 11:59pm UTC on March 12, the API will respond with the v3 media type by default. |
| 46 | + |
| 47 | +Follow[@GitHubAPI][] to receive updates before and after the test. |
| 48 | + |
| 49 | +##Stay informed |
| 50 | + |
| 51 | +Depending on the results of the cutover test, we may schedule additional tests before the final cutover on April 15. If so, we'll to announce them in advance. Be sure to stay tuned to the[blog] or follow[@GitHubAPI] for updates. |
| 52 | + |
| 53 | +If you have any questions, please[get in touch][contact]. We'll be happy to help. |
| 54 | + |
| 55 | +[@GitHubAPI]:https://twitter.com/GitHubAPI |
| 56 | +[blog]:/changes |
| 57 | +[contact]:https://github.com/contact?form[subject]=Upcoming+change+to+default+API+media+type |
| 58 | +[differences]:/v3/versions/#differences-from-beta-version |
| 59 | +[libraries]:/libraries/ |
| 60 | +[media]:/v3/media |
| 61 | +[request-a-media-type]:/v3/media/#beta-v3-and-the-future |
| 62 | +[versions]:/v3/versions |