Skip to content

It is not documented how to send required parameter #1528

Open
@KES777

Description

@KES777

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions