Skip to main content
PUT
/
api
/
org
/
opa
Update OPA rules.
curl --request PUT \
  --url https://{tenant}/api/org/opa \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "open_policy": {
    "rules": "<string>"
  }
}
'
{
  "ID": "<string>",
  "Message": "<string>",
  "Meta": "<unknown>",
  "Status": "<string>"
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Body

application/json

Create rule to prevent creation of keyless APIs.

open_policy
object

Response

OPA rules updated.

ID
string
Message
string
Meta
any
Status
string