Skip to content

Adding endpoint to remove a team from a repository permissions #22400

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion content/reference/api/hub/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,28 @@ paths:
"404":
$ref: "#/components/responses/NotFound"


/v2/repositories/{namespace}/{repository}/groups/{group_id}:
parameters:
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/repository"
- $ref: "#/components/parameters/group_id"
delete:
summary: Remove a group (Team) from repository access
description: |
Removes a group's access to a repository. The user must be a repository admin to perform this action.
tags:
- repositories
security:
- bearerAuth: []
responses:
"204":
description: No content
"400":
$ref: "#/components/responses/BadRequest"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
/v2/orgs/{org_name}/members:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something is off with this line when I try to preview:

  • bad indentation of a mapping entry in "https://deploy-preview-22400--docsdocker.netlify.app/reference/api/hub/latest.yaml" (959:3)
  • probably an indention thing

parameters:
- $ref: "#/components/parameters/org_name"
Expand Down