Update an existing data connector. All fields are optional — only provided fields will be updated. Set state to live or draft to change the connector's state.
The internal description of the data connector. If omitted, it keeps its current value, unless the connector has no internal description yet, in which case it is set to the connector's description.
The HTTP method used by the data connector.
The URL of the external API endpoint. Supports template variables like {{order_id}}.
The audience types this connector targets.
[ "leads", "users" ]
HTTP headers to include in the request. Don't put credentials such as API keys here: header values are recorded unmasked in the connector's execution logs, except Authorization, which is always masked. Attach an authentication token with token_ids instead; its value is masked in execution logs.
The input parameters accepted by this data connector. Replaces all existing inputs.
Whether OTP authentication is enabled for this connector.
Whether authentication is enforced. It takes precedence over customer_authentication and bypass_authentication when sent together, and setting it to false disables OTP. Turning customer authentication off (this field false, or, when it isn't sent, bypass_authentication: true without customer_authentication: true) on a connector that has it on needs an access token from an app owned by this workspace with the write_data_connector_security_settings scope.
Whether to validate missing attributes before execution.
A sample JSON response from the external API. Auto-generates response_fields and sets configuration_response_type to mock_response_type.
{ "order": { "id": 12345, "status": "shipped" } }
{ "name": "Updated Connector Name", "description": "Updated description", "internal_description": "string", "state": "draft", "http_method": "post", "url": "https://api.example.com/orders/{{order_id}}/status", "body": "string", "direct_fin_usage": false, "audiences": [ "leads", "users" ], "headers": [ { … } ], "data_inputs": [ { … } ], "customer_authentication": false, "bypass_authentication": false, "enforce_auth": true, "validate_missing_attributes": true, "mock_response": { "order": { … } }, "token_ids": [ "1234", "5678" ] }