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

[Schema Inaccuracy] Update a team and Update a team(legacy) endpoint doesn't accept admin as a permission #1952

Open
notauserx opened this issue Dec 7, 2022 · 0 comments

Comments

@notauserx
Copy link

Schema Inaccuracy

In the open API specs and docs

permission string
Deprecated. The permission that new repositories will be added to the team with when none is specified.

Default: pull

Can be one of pull, push, admin

but the admin value is not being accepted, I am getting an error response

{
  "message": "Setting team permission to admin is no longer supported",
  "documentation_url": "https://docs.github.com/rest/reference/teams/#update-a-team-legacy"
}

Expected

The docs and the open api specs should remove the admin value as one of the possible values.

@notauserx notauserx changed the title Update a team endpoint doesn't accept admin as a permission [Schema Inaccuracy] Update a team and Update a team(legacy) endpoint doesn't accept admin as a permission Dec 7, 2022
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

2 participants