|
| 1 | +--- |
| 2 | +kind:change |
| 3 | +title:Licenses API update |
| 4 | +created_at:2015-06-24 |
| 5 | +author_name:mislav |
| 6 | +--- |
| 7 | + |
| 8 | +We are expanding the[Licenses API](/v3/licenses) to make it more useful for auditing license usage across all repositories owned by a user or organization. |
| 9 | + |
| 10 | +Before, license information was only returned for an individual repository: |
| 11 | + |
| 12 | +GET /repos/github/hubot |
| 13 | + |
| 14 | +Now, license information will also be included in reponses from endpoints that list multiple repositories, such as[List organization repositories](/v3/repos/#list-organization-repositories): |
| 15 | + |
| 16 | +GET /orgs/github/repos |
| 17 | + |
| 18 | +As before, to access the API during the preview period, you must provide a custom[media type](/v3/media) in the`Accept` header: |
| 19 | + |
| 20 | +application/vnd.github.drax-preview+json |
| 21 | + |
| 22 | +For more information, see the[Licenses API documentation](/v3/licenses/), and if you have any questions or feedback, please[let us know](https://github.com/contact?form%5Bsubject%5D=Licenses+API). |