---
title: "POST /v1/{+resource}:setIamPolicy"
method: POST
path: "/v1/{+resource}:setIamPolicy"
tags: ["organizations"]
---

# POST /v1/{+resource}:setIamPolicy

`POST /v1/{+resource}:setIamPolicy`

## Path parameters

- `resource` string, required

## Request body

- SetIamPolicyRequest
  - `policy` Policy
    - `etag` string, byte
    - `version` integer
    - `bindings` Binding[]
      - `role` string
      - `members` string[]
      - `condition` Expr
        - `expression` string
        - `description` string
        - `location` string
        - `title` string
    - `auditConfigs` AuditConfig[]
      - `auditLogConfigs` AuditLogConfig[]
        - `logType` 'LOG_TYPE_UNSPECIFIED' | 'ADMIN_READ' | 'DATA_WRITE' | 'DATA_READ'
        - `exemptedMembers` string[]
      - `service` string
  - `updateMask` string, google-fieldmask

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/securitycenter.md) · [All operations](https://skmtc.net/google/apis/securitycenter/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/securitycenter/versions/1dddf1287cd1/schema)
