Assign a group (Team) to a repository for access Run in API Explorer

POST /v2/repositories/{namespace}/{repository}/groups

Path parameters

  • namespace string Required
  • repository string Required

Query parameters

  • group_name string Required

    Name of the group (team) in the organization.

  • permission string Required

    Access level for the group. Possible values:

    • read
    • write
    • admin

Responses

  • 200
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • detail string
    • message string
POST /v2/repositories/{namespace}/{repository}/groups
curl \
 --request POST 'https://hub.docker.com/v2/repositories/{namespace}/{repository}/groups?group_name=string&permission=string' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "detail": "string",
  "message": "string"
}