Skip to content

Commit 2265f6c

Browse files
authored
Merge branch 'master' into renovate/actions-checkout-4.x
2 parents 51b5521 + cfc020a commit 2265f6c

38 files changed

+3276
-442
lines changed

apiary.apib

+1,793-381
Large diffs are not rendered by default.

src/01-general/closing-days.apib

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Closing Days [/closingDays]
2+
3+
### closingDays.list [POST /closingDays.list]
4+
5+
Returns information about closing days of the account
6+
7+
+ Request (application/json)
8+
+ Attributes (object)
9+
+ filter (object, optional)
10+
+ date_before: `2023-12-31` (string, optional) - Start of the period for which to return closing days. This includes closing days starting on the date provided.
11+
+ date_after: `2023-12-01` (string, optional) - End of the period for which to return closing days. This includes closing days ending on the date provided.
12+
+ page (Page, optional)
13+
14+
+ Response 200 (application/json)
15+
+ Attributes (object)
16+
+ `data` (array)
17+
+ (object)
18+
+ `id`: `05676ac4-c61d-42bf-a3ea-a420fc1ec017` (string)
19+
+ `date`: `2023-12-21` (string)
20+
+ meta (object) - Only included with request parameter `includes=pagination`
21+
+ page (Pagination)
22+
+ matches: `12` (number)
23+
24+
### closingDays.add [POST /closingDays.add]
25+
26+
Adds a closing day for the account.
27+
28+
+ Request (application/json)
29+
+ Attributes (object)
30+
+ `day`: `2024-02-01` (string, required)
31+
32+
+ Response 201 (application/json)
33+
+ Attributes (object)
34+
+ data (object)
35+
+ type: `closingDay` (string)
36+
+ id: `eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8` (string, required)
37+
38+
### closingDays.delete [POST /closingDays.delete]
39+
40+
Removes a closing day for the account.
41+
42+
+ Request (application/json)
43+
+ Attributes (object)
44+
+ id: `eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8` (string, required)
45+
46+
+ Response 204

src/01-general/custom-fields.apib

+13
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ Get a list of all the definitions of custom fields.
99
+ Request (application/json)
1010

1111
+ Attributes (object)
12+
+ filter (object, optional)
13+
+ ids: `9c64570b-4ec1-4e03-9662-af904f78f7fa`,`aa6d2560-63f9-4b2f-bf96-823dc7c34df7` (array[string], optional)
14+
+ context (enum, optional) - Filters on context
15+
+ Members
16+
+ contact
17+
+ company
18+
+ deal
19+
+ project
20+
+ milestone
21+
+ product
22+
+ invoice
23+
+ subscription
24+
+ ticket
1225
+ page (Page, optional)
1326
+ sort (array, optional)
1427
+ (object)

src/01-general/day-off-types.apib

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## Day Off Types [/dayOffTypes]
2+
3+
### dayOffTypes.list [POST /dayOffTypes.list]
4+
5+
Returns a list of day off types for the account
6+
7+
+ Request (application/json)
8+
9+
+ Response 200 (application/json)
10+
+ Attributes (object)
11+
+ `data` (array)
12+
+ (object)
13+
+ `id`: `39263c14-9c16-022d-8513-60cf722ab088` (string)
14+
+ `name`: `Sick leave` (string)
15+
16+
### dayOffTypes.create [POST /dayOffTypes.create]
17+
18+
Create a new day off type.
19+
20+
+ Request (application/json)
21+
+ Attributes (object)
22+
+ name: `day off type` (string, required)
23+
+ color: `#00B2B2` (string, nullable, optional)
24+
+ date_validity (object, nullable, optional)
25+
+ from: `2024-04-04` (string, required)
26+
+ unit: `2025-05-05` (string, required)
27+
28+
29+
+ Response 201 (application/json)
30+
+ Attributes (object)
31+
+ data (object)
32+
+ type: `dayOffType` (string)
33+
+ id: `cf307a90-d778-003c-b820-ab8415d1a524` (string)
34+
35+
### dayOffTypes.update [POST /dayOffTypes.update]
36+
37+
Update a day off type.
38+
39+
+ Request (application/json)
40+
+ Attributes (object)
41+
+ `id`: `1b7cece0-288c-0bbe-b916-5a315fbe9fe2` (string, required)
42+
+ name: `day off type` (string, optional)
43+
+ color: `#00B2B2` (string, optional)
44+
+ date_validity (object, nullable, optional)
45+
+ from: `2024-04-04` (string, required)
46+
+ unit: `2025-05-05` (string, required)
47+
48+
+ Response 204 (application/json)
49+
50+
### dayOffTypes.delete [POST /dayOffTypes.delete]
51+
52+
Delete a day off type.
53+
54+
+ Request (application/json)
55+
+ Attributes (object)
56+
+ `id`: `1b7cece0-288c-0bbe-b916-5a315fbe9fe2` (string, required)
57+
58+
+ Response 204

src/01-general/days-off.apib

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Days Off [/daysOff]
2+
3+
### daysOff.import [POST /daysOff.import]
4+
5+
Imports a list of days off for the given user.
6+
7+
+ Request (application/json)
8+
+ Attributes (object)
9+
+ `user_id`: `f29abf48-337d-44b4-aad4-585f5277a456` (string, required) - The id of the user that the days off belong to.
10+
+ `leave_type_id`: `0f517e20-2e76-4684-8d6c-3334f6d7148c` (string, required) - The id of the leave type that is associated with the given days off.
11+
+ `days` (array, required) - At least one day must be present
12+
+ (object)
13+
+ `starts_at`: `2024-02-01T08:00:00+00:00` (string, required)
14+
+ `ends_at`: `2024-02-01T18:00:00+00:00` (string, required)
15+
16+
+ Response 201 (application/json)
17+
18+
### daysOff.bulkDelete [POST /daysOff.bulkDelete]
19+
20+
Deletes a list of days off for the given user.
21+
22+
+ Request (application/json)
23+
+ Attributes (object)
24+
+ `user_id`: `f29abf48-337d-44b4-aad4-585f5277a456` (string, required) - The id of the user that the days off belong to.
25+
+ `ids`: `0a481ce9-0d2a-0913-9439-0fd8b469b566`, `5050789e-4385-02f6-bd3c-d051cc12f5cf` (array[string]) - At least one day off id must be present.
26+
27+
+ Response 204 (application/json)

src/01-general/email-tracking.apib

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Email Tracking [/emailTracking]
2+
3+
### emailTracking.list [POST /emailTracking.list]
4+
5+
Get a list of all email tracking.
6+
7+
+ Request (application/json;charset=utf-8)
8+
9+
+ Attributes (object)
10+
+ filter (object, required)
11+
+ subject (object, required)
12+
+ type: `contact` (EmailTrackingSubjectTypes, required)
13+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string, required)
14+
+ page (Page, optional)
15+
16+
+ Response 200 (application/json;charset=utf-8)
17+
18+
+ Attributes (object)
19+
+ data (array)
20+
+ (object)
21+
+ id: `a344c251-2494-0013-b433-ccee8e8435e5` (string)
22+
+ title: `an email subject` (string)
23+
+ content: `<p>the contents of the received email</p>` (string)
24+
+ subject (object)
25+
+ type: `contact` (EmailTrackingSubjectTypes)
26+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string)
27+
+ added_at: `2016-01-01T00:00:00+00:00` (string)
28+
29+
### emailTracking.create [POST /emailTracking.create]
30+
31+
Create a new email tracking.
32+
33+
+ Request (application/json)
34+
+ Attributes (object)
35+
+ subject (object, required)
36+
+ type: `contact` (EmailTrackingSubjectTypes, required)
37+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string, required)
38+
+ title: `an email subject` (string, optional)
39+
+ content: `<p>the contents of the received email</p>` (string, required)
40+
41+
+ Response 201 (application/json)
42+
43+
+ Attributes (object)
44+
+ data (object)
45+
+ type: `emailTracking` (string)
46+
+ id: `91e99ae3-16f9-01d7-9046-9a501cb2155f` (string)

src/01-general/notes.apib

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## Notes [/notes]
2+
3+
### notes.list [POST /notes.list]
4+
5+
Get a list of all notes.
6+
7+
+ Request (application/json;charset=utf-8)
8+
9+
+ Attributes (object)
10+
+ filter (object, required)
11+
+ subject (object, required)
12+
+ type: `contact` (NoteSubjectTypes, required)
13+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string, required)
14+
+ page (Page, optional)
15+
16+
+ Response 200 (application/json;charset=utf-8)
17+
18+
+ Attributes (object)
19+
+ data (array)
20+
+ (object)
21+
+ id: `a344c251-2494-0013-b433-ccee8e8435e5` (string)
22+
+ content: `new note content` (string)
23+
+ subject (object)
24+
+ type: `contact` (NoteSubjectTypes)
25+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string)
26+
+ added_at: `2016-01-01T00:00:00+00:00` (string)
27+
28+
### notes.create [POST /notes.create]
29+
30+
Create a new note.
31+
32+
+ Request (application/json)
33+
+ Attributes (object)
34+
+ subject (object, required)
35+
+ type: `contact` (NoteSubjectTypes, required)
36+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string, required)
37+
+ content: `new note content` (string, required)
38+
+ notify (array, optional)
39+
+ (object)
40+
+ type: `user` (enum, required)
41+
+ Members
42+
+ `user`
43+
+ id: `f29abf48-337d-44b4-aad4-585f5277a456` (string, required)
44+
45+
+ Response 201 (application/json)
46+
47+
+ Attributes (object)
48+
+ data (object)
49+
+ type: `note` (string)
50+
+ id: `ee94b4c0-5786-0517-9d26-8dd1e6406f20` (string)
51+
52+
### notes.update [POST /notes.update]
53+
54+
Update an existing note.
55+
56+
+ Request (application/json)
57+
+ Attributes (object)
58+
+ id: `36386b05-936e-4cc0-9523-bd20d797ebf5` (string, required)
59+
+ content: `new note content` (string, optional)
60+
61+
+ Response 204

src/01-general/users.apib

+54
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Get the current authenticated user.
1919
+ first_name: `John` (string)
2020
+ last_name: `Smith` (string)
2121
+ email: `[email protected]` (string)
22+
+ email_verification_status: `confirmed` (enum)
23+
+ Members
24+
+ pending
25+
+ confirmed
2226
+ telephones (array[Telephone])
2327
+ language: `nl-BE` (enum)
2428
+ Members
@@ -102,6 +106,11 @@ Get a list of all users.
102106
+ Members
103107
+ active
104108
+ deactivated
109+
+ teams (array)
110+
+ (object)
111+
+ type: `team` (string)
112+
+ id: `6dd0069e-45da-0ec4-911a-afb351d968cd`
113+
105114

106115
### users.info [POST /users.info]
107116

@@ -111,6 +120,7 @@ Get details for a single user.
111120

112121
+ Attributes (object)
113122
+ id: `cb8da52a-ce89-4bf6-8f7e-8ee6cb85e3b5` (string, required)
123+
+ includes: `external_rate` (string, optional) - when used, the response will include `external_rate`
114124

115125
+ Response 200 (application/json)
116126

@@ -146,3 +156,47 @@ Get details for a single user.
146156
+ Members
147157
+ active
148158
+ deactivated
159+
+ teams (array)
160+
+ (object)
161+
+ type: `team` (string)
162+
+ id: `6dd0069e-45da-0ec4-911a-afb351d968cd`
163+
+ `external_rate` (Money, nullable) - Only included with request parameter `includes=external_rate`
164+
165+
166+
### users.listDaysOff [POST /users.listDaysOff]
167+
168+
Returns information about days off of a given user.
169+
170+
+ Request (application/json)
171+
+ Attributes (object)
172+
+ id: `87982c96-f2fe-4b05-838c-ff42c0525758` (string, required)
173+
+ filter (object, optional)
174+
+ `starts_after`: `2023-10-01` (string, optional) - Start of the period for which to return days off.
175+
+ `ends_before`: `2023-10-30` (string, optional) - End of the period for which to return days off.
176+
+ page (Page, optional)
177+
178+
+ Response 200 (application/json)
179+
+ Attributes (object)
180+
+ data (array)
181+
+ (object)
182+
+ `id`: `f611da79-90c2-02b1-b819-a810e0c77291` (string)
183+
+ `starts_at`: `2023-10-01T09:00:00+01:00` (string)
184+
+ `ends_at`: `2023-10-20T18:00:00+01:00` (string)
185+
+ user (object)
186+
+ `type`: `user` (enum[string])
187+
+ Members
188+
+ `user`
189+
+ `id`: `b5094b3f-bb7a-0391-b01b-e709773f3509` (string)
190+
+ leave_type (object)
191+
+ `type`: `dayOffType` (enum[string])
192+
+ Members
193+
+ `dayOffType`
194+
+ `id`: `f68b123c-4c36-0f5c-ac16-11f498e5dc01` (string)
195+
+ `status`: `approved` (enum)
196+
+ Members
197+
+ `approved`
198+
+ `not_approved`
199+
+ `pending`
200+
+ meta (object) - Only included with request parameter `includes=pagination`
201+
+ page (Pagination)
202+
+ matches: `12` (number)

src/02-crm/companies.apib

+13
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Get details for a single company.
9292

9393
+ Attributes (object)
9494
+ id: `e8d31ae7-8258-4fcd-9b2d-78f41b0aa5d5` (string, required)
95+
+ includes: `related_companies,related_contacts` (string, optional) - when used, the response will include `related_companies` and/or `related_contacts`
9596

9697
+ Response 200 (application/json)
9798

@@ -143,6 +144,18 @@ Get details for a single company.
143144
+ tags: prospect, expo (array[string])
144145
+ custom_fields (array[CustomField])
145146
+ marketing_mails_consent: false (boolean)
147+
+ `related_companies` (array) - Only included with request parameter `includes=related_companies`
148+
+ (object)
149+
+ type: `company` (string)
150+
+ id: `f29abf48-337d-44b4-aad4-585f5277a456` (string)
151+
+ `related_contacts` (array) - Only included with request parameter `includes=related_contacts`
152+
+ (object)
153+
+ type: `contact` (string)
154+
+ id: `f29abf48-337d-44b4-aad4-585f5277a456` (string)
155+
+ position: `Developer` (string, nullable)
156+
+ secondary_position: `Technical lead` (string, nullable)
157+
+ division: `Engineering` (string, nullable)
158+
+ is_decision_maker: false (boolean)
146159

147160
### companies.add [POST /companies.add]
148161

0 commit comments

Comments
 (0)