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.
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" client.connector().updateError(u -> u .connectorId("my-connector") .error("Houston, we have a problem!") ); Request example
{ "error": "Houston, we have a problem!" } Response examples (200)
{ "result": "updated" }