Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

It is not documented how to send required parameter #1528

Copy link
Copy link
Open
@KES777

Description

@KES777
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.