Add a member to a group Run in API Explorer

POST /v2/orgs/{org_name}/groups/{group_name}/members

Path parameters

  • org_name string Required

    Name of the organization (namespace).

  • group_name string Required

    Name of the group (team) in the organization.

application/json

Body Required

  • member string Required

Responses

  • 200

    OK

  • 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
  • 500 application/json

    Internal

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
POST /v2/orgs/{org_name}/groups/{group_name}/members
curl \
 --request POST 'https://hub.docker.com/v2/orgs/myorganization/groups/developers/members' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"member":"jonsnow"}'
Request examples
{
  "member": "jonsnow"
}
Response examples (401)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (500)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}