Skip to content
Merged
Show file tree
Hide file tree
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
59 changes: 59 additions & 0 deletions descriptions/2.14/api.intercom.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,21 @@ paths:
{% admonition type="warning" name="Using `company_id`" %}
When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company.
{% /admonition %}
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/update_company_request"
examples:
successful:
summary: Successful
value:
name: my company
website: http://www.mycompany.com/
bad_request:
summary: Bad Request
value:
test: invalid
responses:
'200':
description: Successful
Expand Down Expand Up @@ -17785,6 +17800,50 @@ components:
155.98 will be truncated to 155. Note that this has an upper limit of
2**31-1 or 2147483647..
example: 1000
update_company_request:
type: object
title: Update Company Request Payload
description: You can update a Company
nullable: true
properties:
name:
type: string
description: The name of the Company
example: Intercom
plan:
type: string
description: The name of the plan you have associated with the company.
example: Enterprise
size:
type: integer
description: The number of employees in this company.
example: '100'
website:
type: string
description: The URL for this company's website. Please note that the value
specified here is not validated. Accepts any string.
example: https://www.example.com
industry:
type: string
description: The industry that this company operates in.
example: Manufacturing
custom_attributes:
type: object
description: A hash of key/value pairs containing any other data about the
company you want Intercom to store.
additionalProperties:
type: string
example:
paid_subscriber: true
monthly_spend: 155.5
team_mates: 9
monthly_spend:
type: integer
description: How much revenue the company generates for your business. Note
that this will truncate floats. i.e. it only allow for whole integers,
155.98 will be truncated to 155. Note that this has an upper limit of
2**31-1 or 2147483647..
example: 1000
create_or_update_custom_object_instance_request:
description: Payload to create or update a Custom Object instance
type: object
Expand Down
8 changes: 7 additions & 1 deletion fern/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,9 @@ components:
# Remove nullable: false once java generator updated to handle this case.
nullable: false

update_company_request:
x-fern-type-name: UpdateCompanyRequestBody

securitySchemes:
bearerAuth:
x-fern-bearer:
Expand All @@ -1881,7 +1884,7 @@ x-fern-version:
header:
name: version
value: Intercom-Version
default: "2.11"
default: "2.14"
values:
- "1.0"
- "1.1"
Expand All @@ -1900,6 +1903,9 @@ x-fern-version:
- "2.9"
- "2.10"
- "2.11"
- "2.12"
- "2.13"
- "2.14"
- "Unstable"

servers:
Expand Down
Loading