Remove member from org
/v2/orgs/{org_name}/members/{username} Removes the member from the org, ie. all groups in the org, unless they're the last owner
This operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.
Connection and access
API connection and authentication guidance
https://hub.docker.com
—
Docker HUB API
Use one of these alternatives. Requirements within an alternative apply together.
bearerAuth
Parameters
org_name
path
Required
Type:
string
All schema constraints and annotations
{
"type": "string"
}username
path
Required
Type:
string
All schema constraints and annotations
{
"example": "jonsnow",
"type": "string"
}Request and responses
Response
204
No response content is declared.
Response
400
application/json
Schema:
error
error
{
"errinfo": null,
"message": "bad request"
}Response
401
application/json
Schema:
error
error
{
"errinfo": null,
"message": "unauthorized"
}Response
403
application/json
Schema:
error
error
{
"errinfo": null,
"message": "permission denied"
}Response
404
application/json
Schema:
error
error
{
"errinfo": null,
"message": "not found"
}Referenced schemas
Complete operation contract
{
"description": "Removes the member from the org, ie. all groups in the org, unless they're the last owner\n\nThis operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.\n",
"operationId": "deleteV2OrgsByOrgNameMembersByUsername",
"responses": {
"204": {
"description": "Member removed successfully"
},
"400": {
"$ref": "#/components/responses/bad_request"
},
"401": {
"$ref": "#/components/responses/unauthorized"
},
"403": {
"$ref": "#/components/responses/forbidden"
},
"404": {
"$ref": "#/components/responses/not_found"
}
},
"security": [
{
"bearerAuth": []
}
],
"summary": "Remove member from org",
"tags": [
"orgs"
]
}