- [HTTP request](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.request_body)
- [Response body](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports/create#try-it)

Creates a new report.

This initiates a long-running operation that, upon completion, results in a report resource. Once the report is created, its results can be read via `reports.read`.

### HTTP request

`POST https://appoptimize.googleapis.com/v1beta/{parent=projects/*/locations/*}/reports`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent Google Cloud project that will own the report. This value does not define the scope of the report data. See `Report.scope` for setting the data scope. Format: `projects/{project}/locations/{location}`. |

### Query parameters

| Parameters ||
|---|---|
| `reportId` | `string` Required. The ID to use for this report. This ID must be unique within the parent project and should comply with RFC 1034 restrictions (letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum). |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.reports#Report`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/app-optimize/reference/rest/v1beta/projects.locations.operations#Operation`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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 `parent` resource:

- `appoptimize.reports.create`

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