Skip to content

Commit

Permalink
CON-207 document create day off type endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gehadMohamed committed Jun 14, 2024
1 parent ebe3339 commit a69f7ef
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ We list all backwards-compatible additions here. These are currently available i

#### June 2024
- We added `tax` to the `products.info` endpoint.
- We added the `/dayOffTypes.create` endpoint.

#### May 2024
- We added `purchase_order_number` to `projects-v2/projects.info`, `projects-v2/projects.create` and `projects-v2/projects.update`.
Expand Down Expand Up @@ -1821,6 +1822,19 @@ Returns a list of day off types for the account
+ `id`: `39263c14-9c16-022d-8513-60cf722ab088` (string)
+ `name`: `Sick leave` (string)

### dayOffTypes.create [POST /dayOffTypes.create]

Create a new day off type.

+ Request (application/json)
+ Attributes (object)
+ name: `day off type` (string, required)
+ color: `#00B2B2` (string, nullable, optional)
+ date_validity (object, optional)
+ from: `2024-04-04` (string, optional)
+ unit: `2025-05-05` (string, optional)

+ Response 204 (application/json)

# Group CRM

Expand Down
13 changes: 13 additions & 0 deletions src/01-general/day-off-types.apib
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,16 @@ Returns a list of day off types for the account
+ `id`: `39263c14-9c16-022d-8513-60cf722ab088` (string)
+ `name`: `Sick leave` (string)

### dayOffTypes.create [POST /dayOffTypes.create]

Create a new day off type.

+ Request (application/json)
+ Attributes (object)
+ name: `day off type` (string, required)
+ color: `#00B2B2` (string, nullable, optional)
+ date_validity (object, optional)
+ from: `2024-04-04` (string, optional)
+ unit: `2025-05-05` (string, optional)

+ Response 204 (application/json)
1 change: 1 addition & 0 deletions src/changes-backwards-compatible.apib
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ We list all backwards-compatible additions here. These are currently available i

#### June 2024
- We added `tax` to the `products.info` endpoint.
- We added the `/dayOffTypes.create` endpoint.

#### May 2024
- We added `purchase_order_number` to `projects-v2/projects.info`, `projects-v2/projects.create` and `projects-v2/projects.update`.
Expand Down

0 comments on commit a69f7ef

Please sign in to comment.