Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running operation. The returned Operation type has the following method-specific fields:
Required. The agent to import test cases to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
Authorization requires the following IAM permission on the specified resource parent:
dialogflow.testcases.import
Request body
The request body contains data with the following structure:
JSON representation
{// Union field source can be only one of the following:"gcsUri": string,"content": string// End of list of possible types for union field source.}
Fields
Union field source. Required. The source to import. source can be only one of the following:
gcsUri
string
The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>.
Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.
[[["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 imports test cases from either a Google Cloud Storage bucket or a local file, creating new test cases without overwriting existing ones and ignoring the provided IDs in the imported data."],["The process is a long-running operation, with `ImportTestCasesMetadata` in the metadata field and `ImportTestCasesResponse` in the response field of the returned `Operation` type."],["The HTTP request is a POST request to a specified endpoint and requires authorization via `dialogflow.testcases.import` IAM permission on the specified resource."],["The request body requires a source, which can be either a Google Cloud Storage URI (`gcsUri`) or raw byte content (`content`) of the test cases, with appropriate permissions."],["Authorization for this method requires one of the specified OAuth scopes, either `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/dialogflow`."]]],[]]