Skip to content

Commit 302c413

Browse files
committed
CON-363 Add API doc for dayoff type update endpoint
1 parent c2fd6b8 commit 302c413

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

apiary.apib

+16-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ We list all backwards-compatible additions here. These are currently available i
429429
#### June 2024
430430
- We added `tax` to the `products.info` endpoint.
431431
- We added the `daysOff.import` and `daysOff.bulkDelete` endpoints.
432-
- We added the `dayOffTypes.create` and `dayOffTypes.delete` endpoints.
432+
- We added the `dayOffTypes.create`, `dayOffTypes.update` and `dayOffTypes.delete` endpoints.
433433
- We added the `closingDays.add` and `closingDays.delete` endpoints.
434434

435435
#### May 2024
@@ -1866,6 +1866,21 @@ Create a new day off type.
18661866
+ type: `dayOffType` (string)
18671867
+ id: `cf307a90-d778-003c-b820-ab8415d1a524` (string)
18681868

1869+
### dayOffTypes.update [POST /dayOffTypes.update]
1870+
1871+
Update a day off type.
1872+
1873+
+ Request (application/json)
1874+
+ Attributes (object)
1875+
+ `id`: `1b7cece0-288c-0bbe-b916-5a315fbe9fe2` (string, required)
1876+
+ name: `day off type` (string, optional)
1877+
+ color: `#00B2B2` (string, optional)
1878+
+ date_validity (object, nullable, optional)
1879+
+ from: `2024-04-04` (string, required)
1880+
+ unit: `2025-05-05` (string, required)
1881+
1882+
+ Response 204 (application/json)
1883+
18691884
### dayOffTypes.delete [POST /dayOffTypes.delete]
18701885

18711886
Delete a day off type.

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

+15
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ Create a new day off type.
3232
+ type: `dayOffType` (string)
3333
+ id: `cf307a90-d778-003c-b820-ab8415d1a524` (string)
3434

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+
3550
### dayOffTypes.delete [POST /dayOffTypes.delete]
3651

3752
Delete a day off type.

src/changes-backwards-compatible.apib

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We list all backwards-compatible additions here. These are currently available i
77
#### June 2024
88
- We added `tax` to the `products.info` endpoint.
99
- We added the `daysOff.import` and `daysOff.bulkDelete` endpoints.
10-
- We added the `dayOffTypes.create` and `dayOffTypes.delete` endpoints.
10+
- We added the `dayOffTypes.create`, `dayOffTypes.update` and `dayOffTypes.delete` endpoints.
1111
- We added the `closingDays.add` and `closingDays.delete` endpoints.
1212

1313
#### May 2024

0 commit comments

Comments
 (0)