Method: projects.locations.metadataStores.contexts.patch

Updates a stored Context.

HTTP request

PATCH https://{service-endpoint}/v1beta1/{}

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

Path parameters



Immutable. The resource name of the Context.

Query parameters


string (FieldMask format)

Optional. A FieldMask indicating which fields should be updated.

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



If set to true, and the Context is not found, a new Context is created.

Request body

The request body contains an instance of Context.

Response body

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

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • aiplatform.contexts.update

For more information, see the IAM documentation.