Skip to content

Commit 84dbaf7

Browse files
committed
Update docs of associating CO with contacts
1 parent ffc9fef commit 84dbaf7

File tree

1 file changed

+141
-5
lines changed

1 file changed

+141
-5
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 141 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,8 +3750,16 @@ paths:
37503750
type: string
37513751
tags:
37523752
- Contacts
3753+
- Custom Object Instances
37533754
operationId: UpdateContact
3754-
description: You can update an existing contact (ie. user or lead).
3755+
description: |
3756+
You can update an existing contact (ie. user or lead).
3757+
3758+
{% admonition type="info" %}
3759+
This endpoint handles both **contact updates** and **custom object associations**.
3760+
3761+
See _`update a contact with an association to a custom object instance`_ in the request/response examples to see the custom object association format.
3762+
{% /admonition %}
37553763
responses:
37563764
'200':
37573765
description: successful
@@ -3847,6 +3855,106 @@ paths:
38473855
utm_term:
38483856
referrer:
38493857
enabled_push_messaging:
3858+
update a contact with an association to a custom object instance:
3859+
value:
3860+
type: contact
3861+
id: 6762f0cd1bb69f9f2193bb7c
3862+
workspace_id: this_is_an_id279_that_should_be_at_least_
3863+
external_id: '70'
3864+
role: user
3865+
3866+
phone:
3867+
formatted_phone:
3868+
name: joe bloggs
3869+
avatar:
3870+
owner_id:
3871+
social_profiles:
3872+
type: list
3873+
data: []
3874+
has_hard_bounced: false
3875+
marked_email_as_spam: false
3876+
unsubscribed_from_emails: false
3877+
created_at: 1734537421
3878+
updated_at: 1734537422
3879+
signed_up_at: 1734537421
3880+
last_seen_at:
3881+
last_replied_at:
3882+
last_contacted_at:
3883+
last_email_opened_at:
3884+
last_email_clicked_at:
3885+
language_override:
3886+
browser:
3887+
browser_version:
3888+
browser_language:
3889+
os:
3890+
location:
3891+
type: location
3892+
country:
3893+
region:
3894+
city:
3895+
country_code:
3896+
continent_code:
3897+
android_app_name:
3898+
android_app_version:
3899+
android_device:
3900+
android_os_version:
3901+
android_sdk_version:
3902+
android_last_seen_at:
3903+
ios_app_name:
3904+
ios_app_version:
3905+
ios_device:
3906+
ios_os_version:
3907+
ios_sdk_version:
3908+
ios_last_seen_at:
3909+
custom_attributes:
3910+
order:
3911+
type: Order.list
3912+
instances:
3913+
- id: '21'
3914+
external_id: '123'
3915+
external_created_at: 1392036272
3916+
external_updated_at: 1392036272
3917+
custom_attributes:
3918+
order_number: ORDER-12345
3919+
total_amount: 99.99
3920+
type: Order
3921+
tags:
3922+
type: list
3923+
data: []
3924+
url: "/contacts/6762f0cd1bb69f9f2193bb7c/tags"
3925+
total_count: 0
3926+
has_more: false
3927+
notes:
3928+
type: list
3929+
data: []
3930+
url: "/contacts/6762f0cd1bb69f9f2193bb7c/notes"
3931+
total_count: 0
3932+
has_more: false
3933+
companies:
3934+
type: list
3935+
data: []
3936+
url: "/contacts/6762f0cd1bb69f9f2193bb7c/companies"
3937+
total_count: 0
3938+
has_more: false
3939+
opted_out_subscription_types:
3940+
type: list
3941+
data: []
3942+
url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions"
3943+
total_count: 0
3944+
has_more: false
3945+
opted_in_subscription_types:
3946+
type: list
3947+
data: []
3948+
url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions"
3949+
total_count: 0
3950+
has_more: false
3951+
utm_campaign:
3952+
utm_content:
3953+
utm_medium:
3954+
utm_source:
3955+
utm_term:
3956+
referrer:
3957+
enabled_push_messaging:
38503958
schema:
38513959
allOf:
38523960
- "$ref": "#/components/schemas/contact"
@@ -3882,6 +3990,13 @@ paths:
38823990
value:
38833991
38843992
name: joe bloggs
3993+
update_a_contact_with_an_association_to_a_custom_object_instance:
3994+
summary: update a contact with an association to a custom object
3995+
instance
3996+
value:
3997+
custom_attributes:
3998+
order:
3999+
- '21'
38854000
get:
38864001
summary: Get a contact
38874002
parameters:
@@ -5454,6 +5569,7 @@ paths:
54545569
type: string
54555570
tags:
54565571
- Conversations
5572+
- Custom Object Instances
54575573
operationId: updateConversation
54585574
description: |2+
54595575

@@ -5463,6 +5579,12 @@ paths:
54635579
If you want to reply to a coveration or take an action such as assign, unassign, open, close or snooze, take a look at the reply and manage endpoints.
54645580
{% /admonition %}
54655581

5582+
{% admonition type="info" %}
5583+
This endpoint handles both **conversation updates** and **custom object associations**.
5584+
5585+
See _`update a conversation with an association to a custom object instance`_ in the request/response examples to see the custom object association format.
5586+
{% /admonition %}
5587+
54665588
responses:
54675589
'200':
54685590
description: update a conversation with an association to a custom object
@@ -5610,11 +5732,16 @@ paths:
56105732
title:
56115733
custom_attributes:
56125734
order:
5613-
type: order.list
5735+
type: Order.list
56145736
instances:
56155737
- id: '21'
5616-
custom_attributes: {}
5617-
type: order
5738+
external_id: '123'
5739+
external_created_at: 1392036272
5740+
external_updated_at: 1392036272
5741+
custom_attributes:
5742+
order_number: ORDER-12345
5743+
total_amount: 99.99
5744+
type: Order
56185745
topics: {}
56195746
ticket:
56205747
linked_objects:
@@ -7345,6 +7472,7 @@ paths:
73457472
"$ref": "#/components/schemas/intercom_version"
73467473
tags:
73477474
- Custom Object Instances
7475+
operationId: createCustomObjectInstances
73487476
description: Create or update a custom object instance
73497477
responses:
73507478
'200':
@@ -7408,6 +7536,7 @@ paths:
74087536
"$ref": "#/components/schemas/intercom_version"
74097537
tags:
74107538
- Custom Object Instances
7539+
operationId: getCustomObjectInstancesByExternalId
74117540
description: Fetch a Custom Object Instance by external_id.
74127541
responses:
74137542
'200':
@@ -7456,6 +7585,7 @@ paths:
74567585
"$ref": "#/components/schemas/intercom_version"
74577586
tags:
74587587
- Custom Object Instances
7588+
operationId: deleteCustomObjectInstancesById
74597589
description: Delete a single Custom Object instance by external_id.
74607590
responses:
74617591
'200':
@@ -7499,6 +7629,7 @@ paths:
74997629
"$ref": "#/components/schemas/intercom_version"
75007630
tags:
75017631
- Custom Object Instances
7632+
operationId: getCustomObjectInstancesById
75027633
description: Fetch a Custom Object Instance by id.
75037634
responses:
75047635
'200':
@@ -7539,6 +7670,7 @@ paths:
75397670
"$ref": "#/components/schemas/intercom_version"
75407671
tags:
75417672
- Custom Object Instances
7673+
operationId: deleteCustomObjectInstancesByExternalId
75427674
description: Delete a single Custom Object instance using the Intercom defined
75437675
id.
75447676
responses:
@@ -19873,7 +20005,11 @@ tags:
1987320005
description: What is a conversation?
1987420006
url: https://www.intercom.com/help/en/articles/4323904-what-is-a-conversation
1987520007
- name: Custom Object Instances
19876-
description: Everything about your Custom Object instances.
20008+
description: |
20009+
Everything about your Custom Object instances.
20010+
{% admonition type="warning" name="Permission Requirements" %}
20011+
From now on, to access this endpoint, you need additional permissions. Please head over to the [Developer Hub](https://app.intercom.com/a/apps/_/developer-hub) app package authentication settings to configure the required permissions.
20012+
{% /admonition %}
1987720013
- name: Data Attributes
1987820014
description: Everything about your Data Attributes
1987920015
- name: Data Events

0 commit comments

Comments
 (0)