---
title: "Create or update access policy"
method: POST
path: "/{collection}/access/policies"
tags: ["access control"]
---

# Create or update access policy

`POST /{collection}/access/policies`

If the given id matches an existing policy then the policy will be updated. If the policy id is omitted a new id will be generated and returned.

## Path parameters

- `collection` string, required

## Request body

- AccessPolicy
  - `id` string, int64 — Unique identifier for this rule. Generated if omitted.
  - `name` string, required — Human readable name of this policy
  - `accessPoints` string[] — Access points permitted to view captures under this policy

## Response `200`

OK

## Other responses

- `201` — OK and an id was generated

---

[API](https://skmtc.net/gov/apis/outbackcdx-api.md) · [All operations](https://skmtc.net/gov/apis/outbackcdx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gov/outbackcdx-api/versions/84cf9da336fb/schema)
