Required. The project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.
Authorization requires the following 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.
Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This document outlines how to export an agent to a ZIP file using a long-running operation, specifically using a POST request to the specified endpoint."],["The request requires a `parent` path parameter, representing the project ID or project ID with location ID, and appropriate IAM permissions for exporting agents."],["The request body optionally accepts a `agentUri` field, specifying a Google Cloud Storage URI for agent export, or if left blank will send the agent serialized in line."],["A successful operation returns an instance of `Operation`, and access requires specific OAuth scopes related to Google Cloud Platform or Dialogflow."],["The request uses gRPC Transcoding syntax and requires authentication with write permissions for the Cloud Storage object if specified in the request body."]]],[]]