v10

latestSwagger 2.0Apache 2.0raw.githubusercontent.com2023-06-129314.0 KB
access control

Create or update access policy

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.

post/{collection}/access/policies

Path parameters

collectionstring required

Name of a collection

Request body

idstring int64

Unique identifier for this rule. Generated if omitted.

namestring required

Human readable name of this policy

accessPointsstring[]

Access points permitted to view captures under this policy

Example request

{
  "name": "Public",
  "accessPoints": [
    "public",
    "staff"
  ]
}

Response

OK