Skip to content

Commit

Permalink
#44 - Update OPA endpoints (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen authored Apr 8, 2024
1 parent a162d53 commit ae53b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/pro-and-enterprise/modules/open_policy_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Open Policy Agent has specific endpoints that allow for the configuration of pol

Open Policy Agent's policy decisions can be set at a site-wide global level or at an individual site level.

The `PUT /configuration/opa` endpoint allows the setting of the OPA policy.
The `PUT /sites/opa/accessPolicies` endpoint allows the setting of the OPA policy.
```
{
"policy": "string",
Expand All @@ -42,15 +42,15 @@ Endpoint can only be called with `Admins` role

### Get Open Policy Agent

The `GET /configuration/opa` endpoint allow for the retrival of the OPA policy.
The `GET /sites/{siteId}/opa/accessPolicy` endpoint allow for the retrival of the OPA policy.

:::note
Endpoint can only be called with `Admins` role
:::

### Delete Open Policy Agent

The `DELETE /configuration/opa` endpoint allow for the removal of the OPA policy.
The `DELETE /sites/{siteId}/opa/accessPolicy` endpoint allow for the removal of the OPA policy.

:::note
Endpoint can only be called with `Admins` role
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/open-policy-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ adminControlApi.setOpaConfiguration(new SetOpaConfigurationRequest().siteId(site
```

:::note
The REST API endpoint `PUT /configuration/opa` can be used to set the OPA policy
The REST API endpoint `PUT /sites/opa/accessPolicies` can be used to set the OPA policy
:::

## Add Documents
Expand Down

0 comments on commit ae53b09

Please sign in to comment.