Join the Dialogflow CX competition! Get trained in Dialogflow CX, work on open-source conversational components, get a free Dialogflow t-shirt and win cool prizes! Learn more.

Method: projects.locations.agents.testCases.patch

Updates the specified test case.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: projects/<Project ID>/locations/<LocationID>/agents/ <AgentID>/testCases/<TestCase ID>.

Query parameters


string (FieldMask format)

Required. The mask to specify which fields should be updated. The creationTime and lastTestResult cannot be updated.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of TestCase.

Response body

If successful, the response body contains an instance of TestCase.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.