PUT
/
iam
/
auth
/
v1
/
policies
/
{resource_key}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_key
string
required

A resource key for which policy is being set.

For organizations, this key consists of two components: the organization ID and string "organization", joined by a forward slash. For all other resources, this key consists of three components: the resource ID, the project ID, and the resource type (e.g. "event" or project"), joined by forward slashes (for projects specifically, this contains the same resource ID twice).

Examples: For organization "example", use example/organization For project "demo", use demo/demo/project For event "r8efdFD9sMSaa93" inside the project "demo", use r8efdFD9sMSaa93/demo/event

Body

application/json
resource_key
string
required

A resource key for which policy is being set.

For organizations, this key consists of two components: the organization ID and string "organization", joined by a forward slash. For all other resources, this key consists of three components: the resource ID, the project ID, and the resource type (e.g. "event" or project"), joined by forward slashes (for projects specifically, this contains the same resource ID twice).

Examples: For organization "example", use example/organization For project "demo", use demo/demo/project For event "r8efdFD9sMSaa93" inside the project "demo", use r8efdFD9sMSaa93/demo/event

policy
object
required

New policy value to set for the resource

etag
string

If not empty, the request succeeds only if value matches the currently stored IAM policy

Response

200 - application/json

When there is no error result is empty