Skip to content

Commit 022a3bd

Browse files
committed
add block contact API to unstable version
1 parent cd8060c commit 022a3bd

File tree

1 file changed

+56
-58
lines changed

1 file changed

+56
-58
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4759,6 +4759,39 @@ paths:
47594759
archived: false
47604760
schema:
47614761
"$ref": "#/components/schemas/contact_unarchived"
4762+
"/contacts/{id}/block":
4763+
post:
4764+
summary: Block contact
4765+
parameters:
4766+
- name: Intercom-Version
4767+
in: header
4768+
schema:
4769+
"$ref": "#/components/schemas/intercom_version"
4770+
- name: id
4771+
in: path
4772+
description: id
4773+
example: 63a07ddf05a32042dffac965
4774+
required: true
4775+
schema:
4776+
type: string
4777+
tags:
4778+
- Contacts
4779+
operationId: UnarchiveContact
4780+
description: You can unarchive a single contact.
4781+
responses:
4782+
'200':
4783+
description: successful
4784+
content:
4785+
application/json:
4786+
examples:
4787+
successful:
4788+
value:
4789+
id: 6762f0e31bb69f9f2193bb87
4790+
external_id: '70'
4791+
type: contact
4792+
archived: false
4793+
schema:
4794+
"$ref": "#/components/schemas/contact_blocked"
47624795
"/conversations/{conversation_id}/tags":
47634796
post:
47644797
summary: Add tag to a conversation
@@ -14153,30 +14186,6 @@ components:
1415314186
"$ref": "#/components/schemas/contact_location"
1415414187
social_profiles:
1415514188
"$ref": "#/components/schemas/contact_social_profiles"
14156-
contact_archived:
14157-
title: Contact Archived
14158-
type: object
14159-
description: archived contact object
14160-
properties:
14161-
type:
14162-
type: string
14163-
description: always contact
14164-
enum:
14165-
- contact
14166-
example: contact
14167-
id:
14168-
type: string
14169-
description: The unique identifier for the contact which is given by Intercom.
14170-
example: 5ba682d23d7cf92bef87bfd4
14171-
external_id:
14172-
type: string
14173-
nullable: true
14174-
description: The unique identifier for the contact which is provided by
14175-
the Client.
14176-
example: f3b87a2e09d514c6c2e79b9a
14177-
archived:
14178-
type: boolean
14179-
description: Whether the contact is archived or not.
1418014189
example: true
1418114190
contact_attached_companies:
1418214191
title: Contact Attached Companies
@@ -14224,25 +14233,10 @@ components:
1422414233
example: true
1422514234
contact_deleted:
1422614235
title: Contact Deleted
14227-
type: object
1422814236
description: deleted contact object
14237+
allOf:
14238+
- "$ref": "#/components/schemas/contact_reference"
1422914239
properties:
14230-
type:
14231-
type: string
14232-
description: always contact
14233-
enum:
14234-
- contact
14235-
example: contact
14236-
id:
14237-
type: string
14238-
description: The unique identifier for the contact which is given by Intercom.
14239-
example: 5ba682d23d7cf92bef87bfd4
14240-
external_id:
14241-
type: string
14242-
nullable: true
14243-
description: The unique identifier for the contact which is provided by
14244-
the Client.
14245-
example: f3b87a2e09d514c6c2e79b9a
1424614240
deleted:
1424714241
type: boolean
1424814242
description: Whether the contact is deleted or not.
@@ -14564,31 +14558,35 @@ components:
1456414558
description: Whether there's more Addressable Objects to be viewed. If true,
1456514559
use the url to view all
1456614560
example: true
14561+
contact_archived:
14562+
title: Contact Archived
14563+
description: archived contact object
14564+
allOf:
14565+
- "$ref": "#/components/schemas/contact_reference"
14566+
properties:
14567+
archived:
14568+
type: boolean
14569+
description: Whether the contact is archived or not.
1456714570
contact_unarchived:
1456814571
title: Contact Unarchived
14569-
type: object
1457014572
description: unarchived contact object
14573+
allOf:
14574+
- "$ref": "#/components/schemas/contact_reference"
1457114575
properties:
14572-
type:
14573-
type: string
14574-
description: always contact
14575-
enum:
14576-
- contact
14577-
example: contact
14578-
id:
14579-
type: string
14580-
description: The unique identifier for the contact which is given by Intercom.
14581-
example: 5ba682d23d7cf92bef87bfd4
14582-
external_id:
14583-
type: string
14584-
nullable: true
14585-
description: The unique identifier for the contact which is provided by
14586-
the Client.
14587-
example: f3b87a2e09d514c6c2e79b9a
1458814576
archived:
1458914577
type: boolean
1459014578
description: Whether the contact is archived or not.
1459114579
example: false
14580+
contact_blocked:
14581+
title: Contact Blocked
14582+
description: blocked contact object
14583+
allOf:
14584+
- "$ref": "#/components/schemas/contact_reference"
14585+
properties:
14586+
blocked:
14587+
type: boolean
14588+
description: Always true.
14589+
example: true
1459214590
content_import_source:
1459314591
title: Content Import Source
1459414592
type: object

0 commit comments

Comments
 (0)