Required. The parent resource where this test case will be created. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integrationVersion}
Query parameters
Parameters
testCaseId
string
Required. Required
Request body
The request body contains an instance of TestCase.
Response body
If successful, the response body contains a newly created instance of TestCase.
[[["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-08-22 UTC."],[[["\u003cp\u003eThis webpage outlines how to create a new test case using a POST HTTP request to the specified URL, requiring the \u003ccode\u003eparent\u003c/code\u003e path parameter to identify the integration and version.\u003c/p\u003e\n"],["\u003cp\u003eTo successfully create a test case, users must provide the \u003ccode\u003etestCaseId\u003c/code\u003e query parameter in the request.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a \u003ccode\u003eTestCase\u003c/code\u003e instance, and a successful operation will return a new \u003ccode\u003eTestCase\u003c/code\u003e instance in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating a new test case requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003eintegrations.testCases.create\u003c/code\u003e IAM permission on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.integrations.versions.testCases.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCreates a new test case\n\n### HTTP request\n\n`POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*/integrations/*/versions/*}/testCases`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [TestCase](/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases#TestCase).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [TestCase](/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases#TestCase).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `integrations.testCases.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]