Set a connector sync job error | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
Set a connector sync job error Technical preview
PUT /_connector/_sync_job/{connector_sync_job_id}/_error
Set the error
field for a connector sync job and set its status
to error
.
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.
application/json
Body Required
- The error for the connector sync job error field.
PUT /_connector/_sync_job/{connector_sync_job_id}/_error
curl \
--request PUT 'http://api.example.com/_connector/_sync_job/{connector_sync_job_id}/_error' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"error\": \"some-error\"\n}"'
Request example
{
"error": "some-error"
}