Method: legacySdk.legacySetContextProperty

Full name: projects.locations.instances.legacySdk.legacySetContextProperty

Legacy RPC for setting context property.

HTTP request


Path parameters

Parameters
instance

string

Required. The instance of the legacy sdk. Format: projects/{project}/locations/{location}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "contextType": enum (ContextKeyValueEnum),
  "identifier": string,
  "propertyKey": string,
  "propertyValue": string
}
Fields
contextType

enum (ContextKeyValueEnum)

Required. The context type.

identifier

string

Required. The identifier.

propertyKey

string

Required. The property key.

propertyValue

string

Required. The property value.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.