Skip to content

Commit 26083b2

Browse files
Update latest.yaml
Adding endpoint to remove a team from a repository permissions
1 parent b720d48 commit 26083b2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

content/reference/api/hub/latest.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,34 @@ paths:
927927
"404":
928928
$ref: "#/components/responses/NotFound"
929929

930+
/v2/repositories/{namespace}/{repository}/groups/{group_id}:
931+
parameters:
932+
- $ref: "#/components/parameters/namespace"
933+
- $ref: "#/components/parameters/repository"
934+
- $ref: "#/components/parameters/group_id"
935+
- in: path
936+
name: group_id
937+
required: true
938+
schema:
939+
type: string
940+
description: ID of the group to remove from repository access
941+
delete:
942+
summary: Remove a group (Team) from repository access
943+
description: |
944+
Removes a group's access to a repository. The user must be a repository admin to perform this action.
945+
tags:
946+
- repositories
947+
security:
948+
- bearerAuth: []
949+
responses:
950+
"204":
951+
description: No content
952+
"400":
953+
$ref: "#/components/responses/BadRequest"
954+
"403":
955+
$ref: "#/components/responses/Forbidden"
956+
"404":
957+
$ref: "#/components/responses/NotFound"
930958

931959
/v2/orgs/{org_name}/members:
932960
parameters:

0 commit comments

Comments
 (0)