From ae53b09a7b583171dd1d44d7f0087b7167d97915 Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Sun, 7 Apr 2024 19:06:39 -0500 Subject: [PATCH] #44 - Update OPA endpoints (#45) --- docs/pro-and-enterprise/modules/open_policy_agent.md | 6 +++--- docs/tutorials/open-policy-agent.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pro-and-enterprise/modules/open_policy_agent.md b/docs/pro-and-enterprise/modules/open_policy_agent.md index 7612bc3..7badb2e 100644 --- a/docs/pro-and-enterprise/modules/open_policy_agent.md +++ b/docs/pro-and-enterprise/modules/open_policy_agent.md @@ -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", @@ -42,7 +42,7 @@ 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 @@ -50,7 +50,7 @@ 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 diff --git a/docs/tutorials/open-policy-agent.md b/docs/tutorials/open-policy-agent.md index 777da26..85737ce 100644 --- a/docs/tutorials/open-policy-agent.md +++ b/docs/tutorials/open-policy-agent.md @@ -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