[REST 1.1] Holidays
- 1 GET
- 2 POST
- 2.1 Add holiday
- 3 PATCH
- 3.1 Update holiday
- 4 DELETE
GET
Get holidays list from scheme
Returns list of holidays assigned to given holiday scheme.
Permissions: ADMIN USER SUPERVISOR HR
GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/{schemeId}/holiday
Response: 200 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | int | scheme ID |
POST
Add holiday
Returns and creates new holiday in holiday scheme.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 200 400 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | int | scheme ID |
JSON body fields
Name | Type | Description |
---|---|---|
date | String | Holiday date. ISO 8601 format. |
yearly | Boolean | true - holiday is repeated yearly, false - holiday occurs one time, on selected date |
description | String | Holiday description |
PATCH
Update holiday
Returns and Update existing holiday.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 200 400 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | int | scheme ID |
holidayId | int | holiday ID |
JSON body fields
Name | Type | Description |
---|---|---|
date | String | Holiday date. ISO 8601 format. |
yearly | Boolean | true - holiday is repeated yearly, false - holiday occurs one time, on selected date |
description | String | Holiday description |
DELETE
Delete holiday from scheme
Deletes existing holiday.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 204 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | int | scheme ID |
holidayId | int | holiday ID |
Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net