# Method: projects.attestors.update

- [HTTP request](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors/update#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors/update#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors/update#body.request_body)
- [Response body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors/update#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors/update#body.aspect)

Updates an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor`. Returns `NOT_FOUND` if the `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor` does not exist.

### HTTP request

`PUT https://binaryauthorization.googleapis.com/v1/{attestor.name=projects/*/attestors/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `attestor.name` | `string` Required. The resource name, in the format: `projects/*/attestors/*`. This field may not be updated. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).