- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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 |
Required. Resource identifier of the project creating the companion agent. Format: |
Query parameters
| Parameters | |
|---|---|
companionAgentId |
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-platformhttps://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.