Method: projects.agent.export

Exports the specified agent to a ZIP file.

Operation <response: ExportAgentResponse, metadata: google.protobuf.Struct>

HTTP request

POST https://dialogflow.googleapis.com/v2beta1/{parent=projects/*}/agent:export

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

Required. The project that the agent to export is associated with. Format: projects/<Project ID>.

Authorization requires the following Google IAM permission on the specified resource parent:

  • dialogflow.agents.export

Request body

The request body contains data with the following structure:

JSON representation
{
  "agentUri": string
}
Fields
agentUri

string

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.