* To sync data using self-managed connectors, you need to deploy the {enterprise-search-ref}/build-connector.html[Elastic connector service] on your own infrastructure. This service runs automatically on Elastic Cloud for native connectors.
* The `connector_id` parameter should reference an existing connector.
* The change of `status` must be a valid status transition according to the https://github.com/elastic/connectors/blob/main/docs/CONNECTOR_PROTOCOL.md[Connector Protocol].
[[update-connector-status-api-path-params]]
==== {api-path-parms-title}
`<connector_id>`::
(Required, string)
[role="child_attributes"]
[[update-connector-status-api-request-body]]
==== {api-request-body-title}
`status`::
(Required, string) A valid connector status string, defined in the Connector Framework.
[[update-connector-status-api-response-codes]]
==== {api-response-codes-title}
`200`::
Connector `status` field was successfully updated.
`400`::
The `connector_id` was not provided, the request payload was malformed, or the given status transition is not supported.
`404` (Missing resources)::
No connector matching `connector_id` could be found.
[[update-connector-status-api-example]]
==== {api-examples-title}
The following example updates the `status` of the connector with ID `my-connector`: