---
type: api
title: Check in a connector sync job
description: Check in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in
products:
  - Elasticsearch
---

# Check in a connector sync job

Availability:

## Paths

- `PUT` `/_connector/_sync_job/{connector_sync_job_id}/_check_in`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#bearerauth)

#### Path Parameters

- `connector_sync_job_id` (string Id)
  The unique identifier of the connector sync job to be checked in.

## Description

Check in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.

To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.
This service runs automatically on Elastic Cloud for Elastic managed connectors.

## Response

`application/json`

Type: `object`

## Code Examples

#### Console

```console
PUT _connector/_sync_job/my-connector-sync-job/_check_in
```

#### JavaScript

```javascript
const response = await client.connector.syncJobCheckIn({
  connector_sync_job_id: "my-connector-sync-job",
});
```

#### Python

```python
resp = client.connector.sync_job_check_in(
    connector_sync_job_id="my-connector-sync-job",
)
```

#### curl

```curl
curl -X PUT "$ELASTICSEARCH_URL/_connector/_sync_job/my-connector-sync-job/_check_in" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.connector().syncJobCheckIn(s -> s
    .connectorSyncJobId("my-connector-sync-job")
);
```

#### PHP

```php
$resp = $client->connector()->syncJobCheckIn([
    "connector_sync_job_id" => "my-connector-sync-job",
]);
```

#### Ruby

```ruby
response = client.connector.sync_job_check_in(
  connector_sync_job_id: "my-connector-sync-job"
)
```

