Method: projects.locations.dataStores.sessions.create

Creates a Session.

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

HTTP request

POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/dataStores/*}/sessions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Full resource name of parent data store. Format: projects/{project}/locations/{location}/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:

  • https://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.