# Method: projects.locations.discoveryClients.sendHeartbeat

- [HTTP request](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.discoveryClients/sendHeartbeat#body.aspect)

Sends a discovery client heartbeat. Healthy clients are expected to send heartbeats regularly (normally every few minutes).

### HTTP request

`POST https://migrationcenter.googleapis.com/v1alpha1/{name=projects/*/locations/*/discoveryClients/*}:sendHeartbeat`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The discovery client name. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "version": string, "errors": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/Status`) } ] } ``` |

| Fields ||
|---|---|
| `version` | `string` Optional. Client application version. |
| `errors[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/Status`)`` Optional. Errors affecting client functionality. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/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).