# Method: projects.locations.integrations.versions.testCases.download

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.request_body)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.DownloadTestCaseResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions.testCases/download#try-it)

Downloads a test case. Retrieves the `TestCase` for a given `testCaseId` and returns the response as a string.

### HTTP request

`GET https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*/versions/*/testCases/*}:download`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The test case to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integrationVersion}/testCases/{testCaseId} |

### Query parameters

| Parameters ||
|---|---|
| `fileFormat` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/FileFormat`)`` File format for download request. |

### Request body

The request body must be empty.

### Response body

Response for testCases.download.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "content": string } ``` |

| Fields ||
|---|---|
| `content` | `string` String representation of the test case. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `integrations.testCases.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).