Method: projects.keys.migrate

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 assessments.create calls. You must be authenticated as one of the current owners of the reCAPTCHA Site 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 syntax.

Path parameters

Parameters
name

string

Required. The name of the key to be migrated, in the format "projects/{project}/keys/{key}".

Authorization requires the following IAM permission on the specified resource name:

  • recaptchaenterprise.keys.update

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Key.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • recaptchaenterprise.keys.update

For more information, see the IAM documentation.