Skip to content

add block contact API to unstable version #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 50 additions & 80 deletions descriptions/0/api.intercom.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4040,13 +4040,6 @@ paths:
description: successful
content:
application/json:
examples:
successful:
value:
id: 6762f0d21bb69f9f2193bb7e
external_id: '70'
type: contact
deleted: true
schema:
"$ref": "#/components/schemas/contact_deleted"
'401':
Expand Down Expand Up @@ -4717,13 +4710,6 @@ paths:
description: successful
content:
application/json:
examples:
successful:
value:
id: 6762f0e21bb69f9f2193bb86
external_id: '70'
type: contact
archived: true
schema:
"$ref": "#/components/schemas/contact_archived"
"/contacts/{id}/unarchive":
Expand All @@ -4750,15 +4736,34 @@ paths:
description: successful
content:
application/json:
examples:
successful:
value:
id: 6762f0e31bb69f9f2193bb87
external_id: '70'
type: contact
archived: false
schema:
"$ref": "#/components/schemas/contact_unarchived"
"/contacts/{id}/block":
post:
summary: Block contact
parameters:
- name: Intercom-Version
in: header
schema:
"$ref": "#/components/schemas/intercom_version"
- name: id
in: path
description: id
example: 63a07ddf05a32042dffac965
required: true
schema:
type: string
tags:
- Contacts
operationId: BlockContact
description: You can block a single contact.
responses:
'200':
description: successful
content:
application/json:
schema:
"$ref": "#/components/schemas/contact_blocked"
"/conversations/{conversation_id}/tags":
post:
summary: Add tag to a conversation
Expand Down Expand Up @@ -14153,30 +14158,6 @@ components:
"$ref": "#/components/schemas/contact_location"
social_profiles:
"$ref": "#/components/schemas/contact_social_profiles"
contact_archived:
title: Contact Archived
type: object
description: archived contact object
properties:
type:
type: string
description: always contact
enum:
- contact
example: contact
id:
type: string
description: The unique identifier for the contact which is given by Intercom.
example: 5ba682d23d7cf92bef87bfd4
external_id:
type: string
nullable: true
description: The unique identifier for the contact which is provided by
the Client.
example: f3b87a2e09d514c6c2e79b9a
archived:
type: boolean
description: Whether the contact is archived or not.
example: true
contact_attached_companies:
title: Contact Attached Companies
Expand Down Expand Up @@ -14224,25 +14205,10 @@ components:
example: true
contact_deleted:
title: Contact Deleted
type: object
description: deleted contact object
allOf:
- "$ref": "#/components/schemas/contact_reference"
properties:
type:
type: string
description: always contact
enum:
- contact
example: contact
id:
type: string
description: The unique identifier for the contact which is given by Intercom.
example: 5ba682d23d7cf92bef87bfd4
external_id:
type: string
nullable: true
description: The unique identifier for the contact which is provided by
the Client.
example: f3b87a2e09d514c6c2e79b9a
deleted:
type: boolean
description: Whether the contact is deleted or not.
Expand Down Expand Up @@ -14342,7 +14308,7 @@ components:
nullable: true
description: The unique identifier for the contact which is provided by
the Client.
example: f3b87a2e09d514c6c2e79b9a
example: "70"
contact_reply_base_request:
title: Contact Reply Base Object
type: object
Expand Down Expand Up @@ -14564,31 +14530,35 @@ components:
description: Whether there's more Addressable Objects to be viewed. If true,
use the url to view all
example: true
contact_archived:
title: Contact Archived
description: archived contact object
allOf:
- "$ref": "#/components/schemas/contact_reference"
properties:
archived:
type: boolean
description: Whether the contact is archived or not.
contact_unarchived:
title: Contact Unarchived
type: object
description: unarchived contact object
allOf:
- "$ref": "#/components/schemas/contact_reference"
properties:
type:
type: string
description: always contact
enum:
- contact
example: contact
id:
type: string
description: The unique identifier for the contact which is given by Intercom.
example: 5ba682d23d7cf92bef87bfd4
external_id:
type: string
nullable: true
description: The unique identifier for the contact which is provided by
the Client.
example: f3b87a2e09d514c6c2e79b9a
archived:
type: boolean
description: Whether the contact is archived or not.
example: false
contact_blocked:
title: Contact Blocked
description: blocked contact object
allOf:
- "$ref": "#/components/schemas/contact_reference"
properties:
blocked:
type: boolean
description: Always true.
example: true
content_import_source:
title: Content Import Source
type: object
Expand Down