Method: projects.locations.companionAgents.create

Creates a companion agent.

HTTP request

POST https://{endpoint}/v2beta1/{parent=projects/*/locations/*}/companionAgents

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

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

Query parameters

Parameters
companionAgentId

string

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

Request body

The request body contains an instance of CompanionAgent.

Response body

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

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.