Update Google-Managed Project Data Controls
POST/v1/organizations/providers/google/projects/{project_number}/data_controls
Requires
anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Turn a control on or off, or change the key or bucket set for a region. Controls and regions that you leave out stay as they are.
Your organization must have proved that it owns the project. Only one organization at a time can have controls turned on for a project.
Requires a credential that identifies a user or a service account: an OAuth access token with the org:admin scope, or an organization-scoped API key that belongs to a user or service account whose organization role can update these controls. The admin, owner and primary_owner roles can. An Admin API key gets a 403 error.
Path parameters
Headers
Body
Returns
Errors
Any method can also return the general HTTP errors.
Each code below is the value of error.details.error_code in the response body.
Update Google-Managed Project Data Controls
curl https://api.anthropic.com/v1/organizations/providers/google/projects/$PROJECT_NUMBER/data_controls \
-H 'Content-Type: application/json' \
-H 'anthropic-version: 2026-10-21' \
-H 'anthropic-beta: google-managed-data-controls-2026-09-01' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY" \
-d '{}'Response 200
{
"cmek": {
"retired_keys": [
{
"expires_at": "2019-12-27T18:11:19.117Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"project_number": "123456789012",
"storage": {
"retired_buckets": [
{
"bucket_name": "bucket_name",
"expires_at": "2019-12-27T18:11:19.117Z",
"project_number": "project_number",
"region": "us"
}
],
"type": "disabled"
},
"type": "google_managed_project_data_controls",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
Response 200
{
"cmek": {
"retired_keys": [
{
"expires_at": "2019-12-27T18:11:19.117Z",
"external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"region": "us"
}
],
"type": "disabled"
},
"project_number": "123456789012",
"storage": {
"retired_buckets": [
{
"bucket_name": "bucket_name",
"expires_at": "2019-12-27T18:11:19.117Z",
"project_number": "project_number",
"region": "us"
}
],
"type": "disabled"
},
"type": "google_managed_project_data_controls",
"updated_at": "2019-12-27T18:11:19.117Z"
}