Set a connector sync job error
Technical preview
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.
Path parameters
-
connector_sync_job_id
string Required The unique identifier for the connector sync job.
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"
}
Response examples (200)
{}