Skip to content

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

Open
@notauserx

Description

@notauserx

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.

Activity

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[/+] on Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @becco@notauserx

        Issue actions

          [Schema Inaccuracy] Update a team and Update a team(legacy) endpoint doesn't accept admin as a permission · Issue #1952 · github/rest-api-description