Update org member (role) Run in API Explorer
Updates the role of a member in the organization. Only users in the "owners" group of the organization can use this endpoint.
Path parameters
-
Name of the organization (namespace).
-
Username, identifier for the user (namespace, DockerID).
PUT
/v2/orgs/{org_name}/members/{username}
curl \
--request PUT 'https://hub.docker.com/v2/orgs/myorganization/members/jonsnow' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"role":"owner"}'
Request examples
{
"role": "owner"
}
Response examples (200)
{
"email": "example@docker.com",
"role": "Owner",
"groups": [
"developers",
"owners"
],
"is_guest": false,
"primary_email": "example@docker.com",
"last_logged_in_at": "2021-01-05T21:06:53.506400Z",
"last_seen_at": "2021-01-05T21:06:53.506400Z",
"last_desktop_version": "4.29.0",
"id": "0ab70deb065a43fcacd55d48caa945d8",
"company": "Docker Inc",
"date_joined": "2021-01-05T21:06:53.506400Z",
"full_name": "Jon Snow",
"gravatar_email": "string",
"gravatar_url": "string",
"location": "string",
"profile_url": "string",
"type": "User",
"username": "dockeruser"
}
Response examples (400)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (401)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (403)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (404)
{
"errinfo": {},
"detail": "string",
"message": "string"
}