Method: projects.locations.agent.versions.patch

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

HTTP request

PATCH https://{endpoint}/v2/{*/locations/*/agent/versions/*}

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters



Output only. The unique identifier of this agent version. Supported formats:

  • projects/<Project ID>/agent/versions/<Version ID>
  • projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>

Query parameters


string (FieldMask format)

Required. The mask to control which fields get updated.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Version.

Response body

If successful, the response body contains an instance of Version.

Authorization scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.