Restores the specified agent from a binary file.
Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed.
HTTP request
POST https://dialogflow.googleapis.com/v3beta1/{name=projects/*/locations/*/agents/*}:restore
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the agent to restore into. Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field agent . Required. The agent to restore. agent can be only one of the following: |
||
agentUri |
The Google Cloud Storage URI to restore agent from. The format of this URI must be |
|
agentContent |
Uncompressed raw byte content for agent. A base64-encoded string. |
Response body
If successful, the response body contains an instance of Operation
.
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.