Skip to content

Update an Access Control Policy

Request

Updates information related to a policy.

Security
ApiKeyAuth
Path
policy_idinteger(AccessControlPolicyId)required
Example:67
Bodyapplication/json
policyobjectrequired
curl -i -X PATCH \
  https://api.treasuredata.com/v3/access_control/policies/67 \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "policy": {
      "name": "some_policy",
      "description": "written about the policy"
    }
  }'

Responses

OK

Bodyapplication/json
idinteger(AccessControlPolicyId)required
Example:67
account_idinteger(AccountId)required
Example:123
namestringrequired

Policy's name

Example:"some_policy"
descriptionstring

Policy's description

Example:"written about the policy"
user_countinteger

The number of users which the policy attaches to

Example:3
Response
{ "id": 67, "account_id": 123, "name": "some_policy", "description": "written about the policy", "user_count": 3 }