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.
Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.
Authorization requires the following IAM permission on the specified resource name:
dialogflow.testcases.run
Request body
The request body contains data with the following structure:
JSON representation
{"environment": string}
Fields
environment
string
Optional. Environment name. If not set, draft environment is assumed. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.
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-06-27 UTC."],[[["\u003cp\u003eInitiates a test case run, which is a long-running operation with specific metadata and response fields.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method directed to a URL that includes project, location, agent, and test case identifiers.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a path parameter named \u003ccode\u003ename\u003c/code\u003e, formatted as a string, which identifies the test case, and also requires \u003ccode\u003edialogflow.testcases.run\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body accepts an optional environment field, a string that specifies the environment for the test run; if not set, the draft environment is assumed.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution returns an Operation object, and authorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],[],null,[]]