Skip to main content
PUT
Create or update the policy at one scope

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

A policy for one scope, as JSON (spec: the portal, agents) or YAML.

catalog
string
required
Required string length: 1 - 128
namespace
string
default:""
Maximum string length: 512
table
string
default:""
Maximum string length: 256
yaml
string | null
Maximum string length: 100000
spec
Spec · object | null
expected_version
integer | null

The version being edited; omit to create the scope's first policy.

Required range: x >= 1

Response

Successful Response

id
string<uuid>
required
scope
ScopeOut · object
required
spec
Spec · object
required
source_yaml
string
required
locked
string[]
required
version
integer
required
updated_by
string
required
updated_at
string
required