File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
content/reference/api/hub Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -892,6 +892,32 @@ paths:
892892 $ref : " #/components/responses/Forbidden"
893893 " 404 " :
894894 $ref : " #/components/responses/NotFound"
895+ /v2/repositories/{namespace}/{repository}/groups :
896+ parameters :
897+ - $ref : " #/components/parameters/namespace"
898+ - $ref : " #/components/parameters/repository"
899+ post :
900+ summary : Assign a group (Team) to a repository for access
901+ tags :
902+ - repositories
903+ security :
904+ - bearerAuth : []
905+ parameters :
906+ - in : query
907+ name : group_name
908+ required : true
909+ schema :
910+ type : string
911+ description : Name of the group (team) in the organization.
912+ - in : query
913+ name : permission
914+ required : true
915+ schema :
916+ type : string
917+ description : string - possible values : read, write, admin
918+ responses :
919+ " 200 " :
920+ $ref : " #/components/responses/team_repo"
895921 /v2/orgs/{org_name}/members :
896922 parameters :
897923 - $ref : " #/components/parameters/org_name"
@@ -3087,6 +3113,20 @@ components:
30873113 description : Resources this token has access to
30883114 items :
30893115 $ref : " #/components/schemas/orgAccessTokenResource"
3116+ team_repo :
3117+ allOf :
3118+ - $ref : " #/components/responses/team_repo"
3119+ properties :
3120+ group_name :
3121+ type : string
3122+ description : Name of the group
3123+ permission :
3124+ type : string
3125+ description : Repo access permission
3126+ enum :
3127+ - read
3128+ - write
3129+ - admin
30903130 parameters :
30913131 namespace :
30923132 in : path
You can’t perform that action at this time.
0 commit comments