# UpdatePolicyRequest

- [JSON representation](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/UpdatePolicyRequest#SCHEMA_REPRESENTATION)

Request message for \[BinauthzManagementService.UpdatePolicy\]\[\].

| JSON representation |
|---|
| ``` { "policy": { object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Policy`) } } ``` |

| Fields ||
|---|---|
| `policy` | ``object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Policy`)`` Required. A new or updated `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Policy` value. The service will overwrite the `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Policy#FIELDS.name` field with the resource name in the request URL, in the format `projects/*/policy`. |