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 API method exports a specified agent to a ZIP file, and it is a long-running operation with `metadata` and `response` fields."],["The HTTP request is a POST request to a specific endpoint URL using gRPC Transcoding syntax, and it requires a `parent` path parameter which is the project ID of the associated agent."],["The request body contains the `agentUri`, which is a required Google Cloud Storage URI where the agent will be exported, and this format must be `gs://\u003cbucket-name\u003e/\u003cobject-name\u003e`."],["The response body, upon success, will be an instance of `Operation`, and the request requires write permissions for the specified Cloud Storage object, along with the `dialogflow.agents.export` IAM permission."],["Authorization requires one of the following OAuth scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/dialogflow`."]]],[]]