# Method: projects.locations.instances.importRegisteredParties

- [HTTP request](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#body.aspect_1)
- [UpdateMode](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#UpdateMode)

Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.

### HTTP request

`POST https://financialservices.googleapis.com/v1/{name=projects/*/locations/*/instances/*}:importRegisteredParties`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The full path to the Instance resource in this API. format: `projects/{project}/locations/{location}/instances/{instance}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `financialservices.v1instances.importRegisteredParties` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "partyTables": [ string ], "mode": enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#UpdateMode`), "validateOnly": boolean, "lineOfBusiness": enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/LineOfBusiness`) } ``` |

| Fields ||
|---|---|
| `partyTables[]` | `string` Optional. List of BigQuery tables. Union of tables will be taken if there is more than one table. VPC-SC restrictions apply. format: `bq://{project}.{bqDatasetID}.{bqTableID}` Use of `datasets` is preferred over the latter due to its simplicity and the reduced risk of errors `partyTables` and `datasets` must not be provided at the same time |
| `mode` | ``enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances/importRegisteredParties#UpdateMode`)`` Required. Mode of the request. |
| `validateOnly` | `boolean` Optional. If the request will not register the parties, just determine what would happen. |
| `lineOfBusiness` | ``enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/LineOfBusiness`)`` Required. LineOfBusiness for the specified registered parties. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.operations#Operation`.

### 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:

- `financialservices.v1instances.importRegisteredParties`

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

## UpdateMode

UpdateMode controls the behavior for instances.importRegisteredParties.

| Enums ||
|---|---|
| `UPDATE_MODE_UNSPECIFIED` | Default mode. |
| `REPLACE` | Replace parties that are removable in Parties Table with new parties. |
| `APPEND` | Add new parties to Parties Table. |