- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.LegacyShareAdvancedReportResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarReports/legacyShareAdvancedReport#body.aspect_1)

**Full name**: projects.locations.instances.legacySoarReports.legacyShareAdvancedReport

Updates the sharing settings for an advanced report, allowing specified users or groups to access and view its data.

### HTTP request

`POST https://{endpoint}/v1alpha/{instance}/legacySoarReports:legacyShareAdvancedReport`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. The instance to share the advanced report for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "title": string, "workbookUniqName": string, "folderName": string, "modifier": string, "modifierFullName": string, "environments": [ string ], "includeViewOnlyUsers": boolean, "id": string, "creationTimeUnixTimeInMs": string, "modificationTimeUnixTimeInMs": string, "creator": string, "creatorFullName": string } ``` |

| Fields ||
|---|---|
| `title` | `string` Optional. The title of the report. |
| `workbookUniqName` | `string` Optional. The workbook unique name of the report. |
| `folderName` | `string` Optional. The folder name of the report. |
| `modifier` | `string` Optional. The modifier of the report. |
| `modifierFullName` | `string` Optional. The modifier full name of the report. |
| `environments[]` | `string` Optional. The environments of the report. |
| `includeViewOnlyUsers` | `boolean` Optional. Include view only users. |
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The report schedule id. |
| `creationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The creation time of the report template. |
| `modificationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The last modified time of the report template. |
| `creator` | `string` Optional. The creator of the report template. |
| `creatorFullName` | `string` Optional. The creator full name of the report template. |

### Response body

Response message for legacySoarReports.legacyShareAdvancedReport.

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

| JSON representation |
|---|
| ``` { "title": string, "workbookUniqName": string, "folderName": string, "modifier": string, "modifierFullName": string, "environments": [ string ], "creator": string, "creatorFullName": string, "includeViewOnlyUsers": boolean, "id": string, "creationTimeUnixTimeInMs": string, "modificationTimeUnixTimeInMs": string } ``` |

| Fields ||
|---|---|
| `title` | `string` Optional. The title of the report. |
| `workbookUniqName` | `string` Optional. The workbook unique name of the report. |
| `folderName` | `string` Optional. The folder name of the report. |
| `modifier` | `string` Optional. The modifier of the report. |
| `modifierFullName` | `string` Optional. The modifier full name of the report. |
| `environments[]` | `string` Optional. The environments of the report. |
| `creator` | `string` Optional. The creator of the report template. |
| `creatorFullName` | `string` Optional. The creator full name of the report template. |
| `includeViewOnlyUsers` | `boolean` Optional. Include view only users. |
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The report schedule id. |
| `creationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The creation time of the report template. |
| `modificationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The last modified time of the report template. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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

- `chronicle.legacySoarReports.update`

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