Method: projects.locations.agents.testCases.patch

Updates the specified test case.

HTTP request

PATCH https://dialogflow.googleapis.com/v3/{testCase.name=projects/*/locations/*/agents/*/testCases/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
testCase.name

string

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

Parameters
updateMask

string (FieldMask format)

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

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:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/dialogflow

For more information, see the Authentication Overview.