Skip to content

Commit 94201a5

Browse files
committed
feat: Add update endpoint for data connectors with request body schema
1 parent 81c5053 commit 94201a5

1 file changed

Lines changed: 254 additions & 1 deletion

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 254 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10553,7 +10553,7 @@ paths:
1055310553
- Data Connectors
1055410554
operationId: createDataConnector
1055510555
description: |
10556-
Create a new data connector. The connector is created in `draft` state. Configure its URL, headers, data inputs, and other settings, then publish it to `live` when ready.
10556+
Create a new data connector. The connector is created in `draft` state. Configure its URL, headers, data inputs, and other settings, then set it to `live` when ready.
1055710557
responses:
1055810558
'201':
1055910559
description: Data connector created
@@ -10864,6 +10864,149 @@ paths:
1086410864
message: Access Token Invalid
1086510865
schema:
1086610866
"$ref": "#/components/schemas/error"
10867+
patch:
10868+
summary: Update a data connector
10869+
parameters:
10870+
- name: Intercom-Version
10871+
in: header
10872+
schema:
10873+
"$ref": "#/components/schemas/intercom_version"
10874+
- name: id
10875+
in: path
10876+
required: true
10877+
description: The unique identifier of the data connector.
10878+
example: '12345'
10879+
schema:
10880+
type: string
10881+
tags:
10882+
- Data Connectors
10883+
operationId: updateDataConnector
10884+
description: |
10885+
Update an existing data connector. Only provided fields are changed. Set `state` to `live` or `draft` to change the connector's state.
10886+
requestBody:
10887+
content:
10888+
application/json:
10889+
schema:
10890+
"$ref": "#/components/schemas/update_data_connector_request"
10891+
examples:
10892+
Update name and description:
10893+
summary: Update basic fields
10894+
value:
10895+
name: Updated Connector Name
10896+
description: Updated description
10897+
Set state to live:
10898+
summary: Set a connector to live
10899+
value:
10900+
state: live
10901+
Set state to draft:
10902+
summary: Set a connector to draft
10903+
value:
10904+
state: draft
10905+
responses:
10906+
'200':
10907+
description: Data connector updated
10908+
content:
10909+
application/json:
10910+
examples:
10911+
Data connector updated:
10912+
value:
10913+
type: data_connector
10914+
id: '12345'
10915+
name: Updated Connector Name
10916+
description: Updated description
10917+
state: draft
10918+
http_method: post
10919+
direct_fin_usage: false
10920+
audiences:
10921+
- users
10922+
- leads
10923+
execution_type: server_side
10924+
configuration_response_type: test_response_type
10925+
data_transformation_type:
10926+
client_function_name:
10927+
client_function_timeout_ms:
10928+
data_inputs:
10929+
- name: conversation_id
10930+
type: string
10931+
description: The Intercom conversation ID
10932+
required: true
10933+
default_value: ''
10934+
response_fields: []
10935+
object_mappings: []
10936+
token_ids: []
10937+
customer_authentication: false
10938+
bypass_authentication: false
10939+
validate_missing_attributes: false
10940+
created_by_admin_id: '456'
10941+
updated_by_admin_id: '456'
10942+
created_at: '2025-11-15T09:30:00Z'
10943+
updated_at: '2026-03-24T14:22:15Z'
10944+
execution_results_url: "/data_connectors/12345/execution_results"
10945+
schema:
10946+
"$ref": "#/components/schemas/data_connector_detail"
10947+
'404':
10948+
description: Data connector not found
10949+
content:
10950+
application/json:
10951+
examples:
10952+
Data connector not found:
10953+
value:
10954+
type: error.list
10955+
request_id: b4a45e2c-7a8d-4f3e-9c1a-2d5e8f7a6b3c
10956+
errors:
10957+
- code: data_connector_not_found
10958+
message: Data connector not found
10959+
schema:
10960+
"$ref": "#/components/schemas/error"
10961+
'409':
10962+
description: Conflict
10963+
content:
10964+
application/json:
10965+
examples:
10966+
Data connector in use:
10967+
value:
10968+
type: error.list
10969+
request_id: d6c78e4f-1a2b-3c4d-5e6f-7a8b9c0d1e2f
10970+
errors:
10971+
- code: data_connector_in_use
10972+
message: Data connector is in use by other resources and cannot be set to draft
10973+
schema:
10974+
"$ref": "#/components/schemas/error"
10975+
'422':
10976+
description: Invalid parameter
10977+
content:
10978+
application/json:
10979+
examples:
10980+
Invalid audiences:
10981+
value:
10982+
type: error.list
10983+
request_id: a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d
10984+
errors:
10985+
- code: parameter_invalid
10986+
message: "Invalid audiences. Must be a subset of: leads, users, visitors"
10987+
Invalid field value:
10988+
value:
10989+
type: error.list
10990+
request_id: a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d
10991+
errors:
10992+
- code: parameter_invalid
10993+
message: "Http Method isn't an option"
10994+
schema:
10995+
"$ref": "#/components/schemas/error"
10996+
'401':
10997+
description: Unauthorized
10998+
content:
10999+
application/json:
11000+
examples:
11001+
Unauthorized:
11002+
value:
11003+
type: error.list
11004+
request_id: test-uuid-replacement
11005+
errors:
11006+
- code: unauthorized
11007+
message: Access Token Invalid
11008+
schema:
11009+
"$ref": "#/components/schemas/error"
1086711010
"/data_connectors/{data_connector_id}/execution_results":
1086811011
get:
1086911012
summary: List execution results for a data connector
@@ -22485,6 +22628,116 @@ components:
2248522628
example: false
2248622629
required:
2248722630
- name
22631+
update_data_connector_request:
22632+
title: Update Data Connector Request
22633+
type: object
22634+
description: |
22635+
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.
22636+
properties:
22637+
name:
22638+
type: string
22639+
description: The name of the data connector.
22640+
example: Updated Connector Name
22641+
description:
22642+
type: string
22643+
description: A description of what this data connector does.
22644+
example: Updated description
22645+
state:
22646+
type: string
22647+
description: The desired state of the connector.
22648+
enum:
22649+
- draft
22650+
- live
22651+
http_method:
22652+
type: string
22653+
description: The HTTP method used by the data connector.
22654+
enum:
22655+
- get
22656+
- post
22657+
- put
22658+
- delete
22659+
- patch
22660+
example: post
22661+
url:
22662+
type: string
22663+
description: The URL of the external API endpoint. Supports template variables like `{{order_id}}`.
22664+
example: "https://api.example.com/orders/{{order_id}}/status"
22665+
body:
22666+
type: string
22667+
nullable: true
22668+
description: The request body template. Supports template variables.
22669+
direct_fin_usage:
22670+
type: boolean
22671+
description: Whether this connector is used directly by Fin.
22672+
example: false
22673+
audiences:
22674+
type: array
22675+
description: The audience types this connector targets.
22676+
items:
22677+
type: string
22678+
enum:
22679+
- leads
22680+
- users
22681+
- visitors
22682+
example:
22683+
- leads
22684+
- users
22685+
headers:
22686+
type: array
22687+
description: HTTP headers to include in the request.
22688+
items:
22689+
type: object
22690+
properties:
22691+
name:
22692+
type: string
22693+
description: The header name.
22694+
example: Content-Type
22695+
value:
22696+
type: string
22697+
description: The header value. Supports template variables.
22698+
example: application/json
22699+
data_inputs:
22700+
type: array
22701+
description: The input parameters accepted by this data connector. Replaces all existing inputs.
22702+
items:
22703+
type: object
22704+
properties:
22705+
name:
22706+
type: string
22707+
description: The name of the input parameter.
22708+
example: order_id
22709+
type:
22710+
type: string
22711+
description: The data type of the input.
22712+
enum:
22713+
- string
22714+
- integer
22715+
- decimal
22716+
- boolean
22717+
example: string
22718+
description:
22719+
type: string
22720+
description: A description of the input parameter. Required for each input.
22721+
example: The order ID to look up
22722+
required:
22723+
type: boolean
22724+
description: Whether this input is required.
22725+
example: true
22726+
default_value:
22727+
type: string
22728+
description: The default value for this input, if any.
22729+
customer_authentication:
22730+
type: boolean
22731+
description: Whether OTP authentication is enabled for this connector.
22732+
example: false
22733+
bypass_authentication:
22734+
type: boolean
22735+
description: Whether authentication is bypassed for this connector.
22736+
example: false
22737+
validate_missing_attributes:
22738+
type: boolean
22739+
description: Whether to validate missing attributes before execution.
22740+
example: true
2248822741
data_connector:
2248922742
title: Data Connector
2249022743
type: object

0 commit comments

Comments
 (0)