Skip to content

Commit 33aa1ec

Browse files
authored
Update Data Connectors schema: remove source, add state_version, fix default_value (#418)
1 parent 0793726 commit 33aa1ec

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10491,6 +10491,16 @@ paths:
1049110491
required: true
1049210492
schema:
1049310493
type: string
10494+
- name: state_version
10495+
in: query
10496+
required: false
10497+
description: Which version of the data connector to return. Defaults to live.
10498+
schema:
10499+
type: string
10500+
enum:
10501+
- draft
10502+
- live
10503+
default: live
1049410504
tags:
1049510505
- Data Connectors
1049610506
operationId: RetrieveDataConnector
@@ -10526,7 +10536,7 @@ paths:
1052610536
type: string
1052710537
description: The Intercom conversation ID
1052810538
required: true
10529-
source: fin
10539+
default_value: ''
1053010540
response_fields:
1053110541
- path: status
1053210542
type: string
@@ -10544,6 +10554,20 @@ paths:
1054410554
execution_results_url: "/data_connectors/12345/execution_results"
1054510555
schema:
1054610556
"$ref": "#/components/schemas/data_connector_detail"
10557+
'400':
10558+
description: Invalid state_version parameter
10559+
content:
10560+
application/json:
10561+
examples:
10562+
Invalid state_version:
10563+
value:
10564+
type: error.list
10565+
request_id: b4a45e2c-7a8d-4f3e-9c1a-2d5e8f7a6b3c
10566+
errors:
10567+
- code: parameter_invalid
10568+
message: "Invalid state_version. Must be one of: live, draft"
10569+
schema:
10570+
"$ref": "#/components/schemas/error"
1054710571
'404':
1054810572
description: Data connector not found
1054910573
content:
@@ -22141,8 +22165,7 @@ components:
2214122165
example: true
2214222166
default_value:
2214322167
type: string
22144-
nullable: true
22145-
description: The default value for the parameter.
22168+
description: The default value for the parameter. Defaults to an empty string if omitted.
2214622169
customer_authentication:
2214722170
type: boolean
2214822171
description: Whether the connector requires customer authentication before executing. Defaults to false.
@@ -22348,17 +22371,8 @@ components:
2234822371
description: Whether this input is required.
2234922372
example: true
2235022373
default_value:
22351-
nullable: true
22352-
description: The default value for this input, if any.
22353-
source:
2235422374
type: string
22355-
nullable: true
22356-
description: The source context for this input.
22357-
enum:
22358-
- fin
22359-
- custom
22360-
- attribute
22361-
example: fin
22375+
description: The default value for this input, if any.
2236222376
response_fields:
2236322377
type: array
2236422378
description: The fields returned in the connector response.

0 commit comments

Comments
 (0)