Method: projects.locations.collections.engines.sessions.create

Creates a Session.

If the Session to create already exists, an ALREADY_EXISTS error is returned.

HTTP request

POST http://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*}/sessions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Full resource name of parent data store. Format: projects/{projectNumber}/locations/{locationId}/collections/{collection}/dataStores/{dataStoreId}

Request body

The request body contains an instance of Session.

Response body

If successful, the response body contains a newly created instance of Session.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • discoveryengine.sessions.create

For more information, see the IAM documentation.