Update the connector error field
Technical preview
Set the error field for the connector. If the error provided in the request body is non-null, the connector’s status is updated to error. Otherwise, if the error is reset to null, the connector status is updated to connected.
Path parameters
-
connector_id
string Required The unique identifier of the connector to be updated
Body
Required
PUT
/_connector/{connector_id}/_error
Console
PUT _connector/my-connector/_error
{
"error": "Houston, we have a problem!"
}
resp = client.connector.update_error(
connector_id="my-connector",
error="Houston, we have a problem!",
)
const response = await client.connector.updateError({
connector_id: "my-connector",
error: "Houston, we have a problem!",
});
response = client.connector.update_error(
connector_id: "my-connector",
body: {
"error": "Houston, we have a problem!"
}
)
$resp = $client->connector()->updateError([
"connector_id" => "my-connector",
"body" => [
"error" => "Houston, we have a problem!",
],
]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"error":"Houston, we have a problem!"}' "$ELASTICSEARCH_URL/_connector/my-connector/_error"
Request example
{
"error": "Houston, we have a problem!"
}
Response examples (200)
{
"result": "updated"
}