@@ -428,6 +428,9 @@ We list all backwards-compatible additions here. These are currently available i
428428
429429#### June 2024
430430- We added `tax` to the `products.info` endpoint.
431+ - We added the `daysOff.import` and `daysOff.bulkDelete` endpoints.
432+ - We added the `dayOffTypes.create` and `dayOffTypes.delete` endpoints.
433+ - We added the `closingDays.add` and `closingDays.delete` endpoints.
431434
432435#### May 2024
433436- We added `purchase_order_number` to `projects-v2/projects.info` , `projects-v2/projects.create` and `projects-v2/projects.update` .
@@ -1786,7 +1789,7 @@ Create a new email tracking.
17861789
17871790### closingDays.list [POST /closingDays.list]
17881791
1789- Returns information about closing days the account
1792+ Returns information about closing days of the account
17901793
17911794+ Request (application/json)
17921795 + Attributes (object)
@@ -1805,6 +1808,29 @@ Returns information about closing days the account
18051808 + page (Pagination)
18061809 + matches: `12` (number )
18071810
1811+ ### closingDays.add [POST /closingDays.add]
1812+
1813+ Adds a closing day for the account.
1814+
1815+ + Request (application/json)
1816+ + Attributes (object)
1817+ + `day`: `2024-02-01` (string , required )
1818+
1819+ + Response 201 (application/json)
1820+ + Attributes (object)
1821+ + data (object )
1822+ + type: `closingDay` (string )
1823+ + id: `eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8` (string , required )
1824+
1825+ ### closingDays.delete [POST /closingDays.delete]
1826+
1827+ Removes a closing day for the account.
1828+
1829+ + Request (application/json)
1830+ + Attributes (object)
1831+ + id: `eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8` (string , required )
1832+
1833+ + Response 204
18081834
18091835## Day Off Types [/dayOffTypes]
18101836
@@ -1821,6 +1847,62 @@ Returns a list of day off types for the account
18211847 + `id`: `39263c14-9c16-022d-8513-60cf722ab088` (string )
18221848 + `name`: `Sick leave` (string )
18231849
1850+ ### dayOffTypes.create [POST /dayOffTypes.create]
1851+
1852+ Create a new day off type.
1853+
1854+ + Request (application/json)
1855+ + Attributes (object)
1856+ + name: `day off type` (string , required )
1857+ + color: `#00B2B2` (string , nullable , optional )
1858+ + date_validity (object , nullable , optional )
1859+ + from: `2024-04-04` (string , required )
1860+ + unit: `2025-05-05` (string , required )
1861+
1862+
1863+ + Response 201 (application/json)
1864+ + Attributes (object)
1865+ + data (object )
1866+ + type: `dayOffType` (string )
1867+ + id: `cf307a90-d778-003c-b820-ab8415d1a524` (string )
1868+
1869+ ### dayOffTypes.delete [POST /dayOffTypes.delete]
1870+
1871+ Delete a day off type.
1872+
1873+ + Request (application/json)
1874+ + Attributes (object)
1875+ + `id`: `1b7cece0-288c-0bbe-b916-5a315fbe9fe2` (string , required )
1876+
1877+ + Response 204
1878+
1879+ ## Days Off [/daysOff]
1880+
1881+ ### daysOff.import [POST /daysOff.import]
1882+
1883+ Imports a list of days off for the given user.
1884+
1885+ + Request (application/json)
1886+ + Attributes (object)
1887+ + `user_id`: `f29abf48-337d-44b4-aad4-585f5277a456` (string , required ) - The id of the user that the days off belong to.
1888+ + `leave_type_id`: `0f517e20-2e76-4684-8d6c-3334f6d7148c` (string , required ) - The id of the leave type that is associated with the given days off.
1889+ + `days` (array , required ) - At least one day must be present
1890+ + (object )
1891+ + `starts_at`: `2024-02-01T08:00:00+00:00` (string , required )
1892+ + `ends_at`: `2024-02-01T18:00:00+00:00` (string , required )
1893+
1894+ + Response 201 (application/json)
1895+
1896+ ### daysOff.bulkDelete [POST /daysOff.bulkDelete]
1897+
1898+ Deletes a list of days off for the given user.
1899+
1900+ + Request (application/json)
1901+ + Attributes (object)
1902+ + `user_id`: `f29abf48-337d-44b4-aad4-585f5277a456` (string , required ) - The id of the user that the days off belong to.
1903+ + `ids`: `0a481ce9-0d2a-0913-9439-0fd8b469b566`, `5050789e-4385-02f6-bd3c-d051cc12f5cf` (array [string ]) - At least one day off id must be present.
1904+
1905+ + Response 204 (application/json)
18241906
18251907# Group CRM
18261908
0 commit comments