Skip to main content
POST
Set an Organization policy

Authorizations

Authorization
string
header
required

Bearer token for the authenticated caller.

Headers

idempotency-key
string

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64
Example:

"create-prod-2026-05-07"

if-match
string
required

The etag of the resource version the client last read. Required on writes when the resource exposes an etag field. Mismatch returns 409 ABORTED with the current etag in the error metadata.

Required string length: 1 - 256
Example:

"42"

Path Parameters

id
string
required
Required string length: 3 - 54

Body

application/json
bindings
object[]
required
Maximum array length: 100

Response

Policy

bindings
object[]
required
Maximum array length: 100
etag
string
required

Pass as If-Match on setIamPolicy. OUTPUT_ONLY.

Maximum string length: 64