Skip to main content
POST
UpdatePolicy

Authorizations

Authorization
string
header
required

A user session token or personal API key.

Headers

Connect-Protocol-Version
number
required

Define the version of the Connect protocol

Example:

1

Connect-Timeout-Ms
number

Define the timeout, in ms

Example:

1000

Body

application/json
policy
policy · object
required

A Cedar policy. Its source defines which principals, actions, and resources it applies to within its workspace; resource lookup metadata is derived by the server.

cf. AWS Verified Permissions per-tenant policy stores.

updateMask
string

Comma-separated field paths in lowerCamelCase (for example, user.displayName,photo).

Response

Success

A Cedar policy. Its source defines which principals, actions, and resources it applies to within its workspace; resource lookup metadata is derived by the server.

cf. AWS Verified Permissions per-tenant policy stores.

name
string
workspace
string
displayName
string
Maximum string length: 128
description
string
Maximum string length: 4096
statement
string

Cedar source, preserving the author's formatting and comments. string.max_bytes = 65536

Minimum string length: 1
createTime
string<date-time>

A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (Z); input may use an offset from UTC.

Example:

"2023-01-15T01:30:15.01Z"

updateTime
string<date-time>

A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (Z); input may use an offset from UTC.

Example:

"2023-01-15T01:30:15.01Z"

etag
string

Required on updates and deletes to prevent overwriting concurrent changes.