# POLICY_NAME_TAKEN

Canonical page: https://docs.ovok.com/errors/policy-name-taken

**HTTP 409.** Problem type: [`https://docs.ovok.com/errors/policy-name-taken`](https://docs.ovok.com/errors/policy-name-taken).

## What this means [#what-this-means]

Saving the access policy was refused because another policy in the project already has this name. That applies to `POST` or `PUT /v1/access-policies` and to the `save_access_policy` tool. Names must be unique in a project, because child projects find their copy of a policy by its name. The error names the policy that holds the name. Nothing was saved.

## Troubleshooting [#troubleshooting]

1. Find the policy that holds the name with `GET /v1/access-policies` or `list_access_policies`.
2. To change that policy, update it by its `id` instead of creating a new one.
3. To keep both, give the new policy a different name.

## Retry safely [#retry-safely]

Retry with a free name or with the existing policy's `id`. An unchanged call returns the same error. Nothing was saved.

## If the problem persists [#if-the-problem-persists]

Share the HTTP status, problem `type`, request path, response timestamp and `traceId` with your administrator or support contact. Remove access tokens, provider secrets and patient data first. The [Error responses guide](/errors) explains the response fields, and the [machine-code registry](/errors/machine-codes) lists every endpoint-specific type.
