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:
892
892
$ref : " #/components/responses/Forbidden"
893
893
" 404 " :
894
894
$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"
895
921
/v2/orgs/{org_name}/members :
896
922
parameters :
897
923
- $ref : " #/components/parameters/org_name"
@@ -3087,6 +3113,20 @@ components:
3087
3113
description : Resources this token has access to
3088
3114
items :
3089
3115
$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
3090
3130
parameters :
3091
3131
namespace :
3092
3132
in : path
You can’t perform that action at this time.
0 commit comments