Update organization settings Run in API Explorer
Updates an organization's settings. Some settings are only used when the organization is on a business subscription.
Only users with administrative privileges for the organization (owner role) can modify these settings.
The following settings are only used on a business subscription:
restricted_images
PUT
/v2/orgs/{name}/settings
curl \
--request PUT 'https://hub.docker.com/v2/orgs/{name}/settings' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"restricted_images":{"enabled":true,"allow_official_images":true,"allow_verified_publishers":true}}'
Request examples
{
"restricted_images": {
"enabled": true,
"allow_official_images": true,
"allow_verified_publishers": true
}
}
Response examples (200)
{
"restricted_images": {
"enabled": true,
"allow_official_images": true,
"allow_verified_publishers": true
}
}
Response examples (401)
{
"detail": "string",
"message": "string"
}
Response examples (403)
{
"detail": "string",
"message": "string"
}
Response examples (404)
{
"detail": "string",
"message": "string"
}