Set opa access policy items, can only be requested with ADMIN privileges
PUT/sites/:siteId/opa/accessPolicy/policyItems
Sets opa access policy items
Request
Path Parameters
Site Identifier
- application/json
Body
required
Array [
Array [
]
]
policyItems
object[]
List of OPA policy items
Type of Opa Policy Item
Possible values: [ALLOW
]
OPA Policy in REGO format
User must match all roles
User must match any role
attributes
object[]
Attribute Key
eq
object
Attribute EQ criteria
The value to compare the Attribute Key value to
The value to compare the Attribute Key value to
The value to compare the Attribute Key value to
input
object
Match Input Username
gt
object
Attribute greater than criteria
The value to compare the Attribute Key value to
gte
object
Attribute greater than and equals to criteria
The value to compare the Attribute Key value to
lt
object
Attribute less than criteria
The value to compare the Attribute Key value to
lte
object
Attribute less than and equals to criteria
The value to compare the Attribute Key value to
neq
object
Attribute not equal to criteria
The value to compare the Attribute Key value to
Responses
- 200
- 400
200 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Result message
{
"message": "string"
}
400 OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}