Method: legacySdk.legacyTrySetContextProperty

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

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

The LegacySdkTrySetContextPropertyResponse message.

If successful, the response body contains data with the following structure:

JSON representation
{
  "payload": boolean
}
Fields
payload

boolean

Required. The context type.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.