POLICY_NAME_TAKEN

Access policy name taken: what the POLICY_NAME_TAKEN error means and how to fix it.

HTTP 409. Problem type: https://docs.ovok.com/errors/policy-name-taken.

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

  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 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

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 explains the response fields, and the machine-code registry lists every endpoint-specific type.

Last updated on

On this page