Skip to content

Update Data Connector Request

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.

namestring

The name of the data connector.

Example:"Updated Connector Name"
descriptionstring

A description of what this data connector does.

Example:"Updated description"
statestring

The desired state of the connector.

Enum:"draft""live"
http_methodstring

The HTTP method used by the data connector.

Enum:"get""post""put""delete""patch"
Example:"post"
urlstring

The URL of the external API endpoint. Supports template variables like {{order_id}}.

Example:"https://api.example.com/orders/{{order_id}}/status"
bodystring

The request body template. Supports template variables.

direct_fin_usageboolean

Whether this connector is used directly by Fin.

Example:false
audiencesArray of strings

The audience types this connector targets.

Items Enum:"leads""users""visitors"
Example:
[ "leads", "users" ]
headersArray of objects

HTTP headers to include in the request.

data_inputsArray of objects

The input parameters accepted by this data connector. Replaces all existing inputs.

customer_authenticationboolean

Whether OTP authentication is enabled for this connector.

Example:false
bypass_authenticationboolean

Whether authentication is bypassed for this connector.

Example:false
validate_missing_attributesboolean

Whether to validate missing attributes before execution.

Example:true
mock_responseobject

A sample JSON response from the external API. Auto-generates response_fields and sets configuration_response_type to mock_response_type.

Example:
{ "order": { "id": 12345, "status": "shipped" } }
token_idsArray of strings

IDs of authentication tokens to attach to this data connector. An empty array removes all tokens.

Example:
[ "1234", "5678" ]
{ "name": "Updated Connector Name", "description": "Updated description", "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, "validate_missing_attributes": true, "mock_response": { "order": {} }, "token_ids": [ "1234", "5678" ] }