Required. The project that the agent to export is associated with. Format: projects/<Project 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
Required. 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 method exports an agent to a ZIP file via a long-running operation, which returns an `Operation` type with specific metadata and a `response` of `ExportAgentResponse`."],["The HTTP request uses a `POST` method to a specified endpoint with a given parent project to define the agent to be exported."],["The request requires a `parent` path parameter specifying the project ID and requires the `dialogflow.agents.export` IAM permission for authorization."],["The request body must include an `agentUri`, which is a Google Cloud Storage URI indicating where to export the agent, or if left blank, it will be returned inline."],["Authorization for this request requires one of the specified OAuth scopes, either `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/dialogflow`."]]],[]]