Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not documented how to send required parameter #1528

Open
1 task done
KES777 opened this issue Sep 7, 2022 · 4 comments
Open
1 task done

It is not documented how to send required parameter #1528

KES777 opened this issue Sep 7, 2022 · 4 comments

Comments

@KES777
Copy link

KES777 commented Sep 7, 2022

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/packages#list-packages-for-an-organization

What changes are you suggesting?

https://docs.github.com/en/rest/packages#list-packages-for-an-organization

curl \
  -H "Accept: application/vnd.github+json" \ 
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  https://api.github.com/orgs/ORG/packages

But when I use this I get error:

{
  "message": "The package_type parameter is required.",
  "documentation_url": "https://docs.github.com/rest/reference/packages#list-packages-for-an-organization"
}

This is not copy/paste example =(

Additional information

What is the purpose of example, if it does not work?

Please, fix documentation to have correct examples.

@KES777 KES777 added the content label Sep 7, 2022
@welcome
Copy link

welcome bot commented Sep 7, 2022

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.

@cmwilson21
Copy link

@KES777 Thanks so much for opening an issue! I'll triage this for the team to take a look 👀

@docubot
Copy link

docubot commented Sep 8, 2022

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.

@docubot docubot transferred this issue from github/docs Sep 8, 2022
@cmwilson21
Copy link

Also adding a link to your discussion for more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants