Get a group of an organization Run in API Explorer

GET /v2/orgs/{org_name}/groups/{group_name}

Path parameters

  • org_name string Required

    Name of the organization (namespace).

  • group_name string Required

    Name of the group (team) in the organization.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • id number

      Group ID

    • uuid string

      UUID for the group

    • name string

      Name of the group

    • description string

      Description of the group

    • member_count number

      Member count of the group

  • 401 application/json

    Authentication failed

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 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
    • errinfo object
    • detail string
    • message string
GET /v2/orgs/{org_name}/groups/{group_name}
curl \
 --request GET 'https://hub.docker.com/v2/orgs/myorganization/groups/developers' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": 10,
  "uuid": "string",
  "name": "mygroup",
  "description": "Groups description",
  "member_count": 10
}
Response examples (401)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}