Open je-hal opened 1 year ago
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
@je-hal Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:
Thank you for opening this issue! Changes to the REST API schema can be requested in github/rest-api-description. I will transfer your issue over to that open source repo.
Any updates here? 👋 I'd already be happy if someone could confirm that there is something wrong with the example.
Code of Conduct
What article on docs.github.com is affected?
Add team access restrictions
What part(s) of the article would you like to see updated?
The code sample is not working.
Currently it suggests to add a JSON object
'{"teams":["justice-league"]}'
in the body of the HTTP Request:However, it is described in the parameter description that an array is expected. That's why you end up with the following error message if you follow the code sample:
The correct code sample would be:
Additional information
No response