# Method: projects.keys.migrate

- [HTTP request](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys/migrate#body.aspect_1)

Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.

### HTTP request

`POST https://recaptchaenterprise.googleapis.com/v1/{name=projects/*/keys/*}:migrate`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the key to be migrated, in the format `projects/{project}/keys/{key}`. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "skipBillingCheck": boolean } ``` |

| Fields ||
|---|---|
| `skipBillingCheck` | `boolean` Optional. If true, skips the billing check. A reCAPTCHA Enterprise key or migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see <https://docs.cloud.google.com/recaptcha/quotas#quota_limit)>. To avoid any disruption of your usage, we check that a billing account is present. If your usage of reCAPTCHA is under the free quota, you can safely skip the billing check and proceed with the migration. See <https://cloud.google.com/recaptcha/docs/billing-information>. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.keys#Key`.

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

- `recaptchaenterprise.keys.update`

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