Update the connector error field Technical preview; Added in 8.12.0

PUT /_connector/{connector_id}/_error

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

application/json

Body Required

  • error string | null Required

    One of:

    A null value that is to be interpreted as an actual value, unless other uses of null that are equivalent to a missing value. It is used for exemple in settings, where using the NullValue for a setting will reset it to its default value.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • result string Required

      Values are created, updated, deleted, not_found, or noop.

PUT /_connector/{connector_id}/_error
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" }