---
title: "Update account policy"
method: PUT
path: "/v2/accounts/{accountId}/policy"
tags: ["Accounts"]
---

# Update account policy

`PUT /v2/accounts/{accountId}/policy`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/accounts/{accountId}/policy`
- Auth: HTTP bearer

Applies an account-scoped policy to an account. An account can have at most one policy at a time, so applying a policy replaces any policy already applied to the account. One policy can be applied to many accounts. To remove the account's policy, use `deleteAccountPolicy`.

## Path parameters

- `accountId` string, required: The ID of the Account, which is a UUID prefixed by the string `account_`.

## Headers

- `X-Idempotency-Key` string

## Request body

- UpdateAccountPolicyRequest: The request body to apply a policy to an account.
  - `accountPolicyId` string, required: The ID of an account-scoped policy.

## Response `200`

Successfully updated account policy.

- AccountPolicy: The policy applied to an account.
  - `accountId` string, required: The ID of the Account, which is a UUID prefixed by the string `account_`.
  - `accountPolicyId` string, required: The ID of an account-scoped policy.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized.
- `403`: User forbidden from performing the action.
- `404`: Account not found.
- `409`: Account is still being provisioned.
- `422`: The policy cannot be applied to the account, or the idempotency key conflicts with a previous request.
- `429`: Rate limit exceeded.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: The endpoint cannot serve the request right now, either because the API is in an unintended outage (`service_unavailable` — dependency failure, deploy issue) or because an operator has intentionally disabled this specific endpoint via a kill switch (`endpoint_unavailable`). Clients should dispatch on `errorType`: `service_unavailable` is typically transient and safe to retry, while `endpoint_unavailable` may persist until an operator re-enables the endpoint.

## Changes

- **2026-12-01** `06cb41a4fb57`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/accounts/:accountId/policy/put.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
