Method: projects.locations.metadataStores.contexts.patch

Stay organized with collections Save and categorize content based on your preferences.

Updates a stored Context.

HTTP request

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

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

Path parameters



Output only. The resource name of the Context.

Query parameters


string (FieldMask format)

Optional. A FieldMask indicating which fields should be updated. Functionality of this field is not yet supported.

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.