Skip to content

Commit 07fa0b8

Browse files
fern-supportjsklan
andauthored
Fix update company spec (#322)
* Update Update company with new request payload type * Update spec * Revert generators.yml changes --------- Co-authored-by: jsklan <[email protected]>
1 parent a05a309 commit 07fa0b8

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

descriptions/2.14/api.intercom.io.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,21 @@ paths:
29552955
{% admonition type="warning" name="Using `company_id`" %}
29562956
When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company.
29572957
{% /admonition %}
2958+
requestBody:
2959+
content:
2960+
application/json:
2961+
schema:
2962+
"$ref": "#/components/schemas/update_company_request"
2963+
examples:
2964+
successful:
2965+
summary: Successful
2966+
value:
2967+
name: my company
2968+
website: http://www.mycompany.com/
2969+
bad_request:
2970+
summary: Bad Request
2971+
value:
2972+
test: invalid
29582973
responses:
29592974
'200':
29602975
description: Successful
@@ -17785,6 +17800,50 @@ components:
1778517800
155.98 will be truncated to 155. Note that this has an upper limit of
1778617801
2**31-1 or 2147483647..
1778717802
example: 1000
17803+
update_company_request:
17804+
type: object
17805+
title: Update Company Request Payload
17806+
description: You can update a Company
17807+
nullable: true
17808+
properties:
17809+
name:
17810+
type: string
17811+
description: The name of the Company
17812+
example: Intercom
17813+
plan:
17814+
type: string
17815+
description: The name of the plan you have associated with the company.
17816+
example: Enterprise
17817+
size:
17818+
type: integer
17819+
description: The number of employees in this company.
17820+
example: '100'
17821+
website:
17822+
type: string
17823+
description: The URL for this company's website. Please note that the value
17824+
specified here is not validated. Accepts any string.
17825+
example: https://www.example.com
17826+
industry:
17827+
type: string
17828+
description: The industry that this company operates in.
17829+
example: Manufacturing
17830+
custom_attributes:
17831+
type: object
17832+
description: A hash of key/value pairs containing any other data about the
17833+
company you want Intercom to store.
17834+
additionalProperties:
17835+
type: string
17836+
example:
17837+
paid_subscriber: true
17838+
monthly_spend: 155.5
17839+
team_mates: 9
17840+
monthly_spend:
17841+
type: integer
17842+
description: How much revenue the company generates for your business. Note
17843+
that this will truncate floats. i.e. it only allow for whole integers,
17844+
155.98 will be truncated to 155. Note that this has an upper limit of
17845+
2**31-1 or 2147483647..
17846+
example: 1000
1778817847
create_or_update_custom_object_instance_request:
1778917848
description: Payload to create or update a Custom Object instance
1779017849
type: object

fern/openapi-overrides.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,9 @@ components:
18721872
# Remove nullable: false once java generator updated to handle this case.
18731873
nullable: false
18741874

1875+
update_company_request:
1876+
x-fern-type-name: UpdateCompanyRequestBody
1877+
18751878
securitySchemes:
18761879
bearerAuth:
18771880
x-fern-bearer:
@@ -1881,7 +1884,7 @@ x-fern-version:
18811884
header:
18821885
name: version
18831886
value: Intercom-Version
1884-
default: "2.11"
1887+
default: "2.14"
18851888
values:
18861889
- "1.0"
18871890
- "1.1"
@@ -1900,6 +1903,9 @@ x-fern-version:
19001903
- "2.9"
19011904
- "2.10"
19021905
- "2.11"
1906+
- "2.12"
1907+
- "2.13"
1908+
- "2.14"
19031909
- "Unstable"
19041910

19051911
servers:

0 commit comments

Comments
 (0)