[REST 1.1] Holidays

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

Name

Type

Description

schemeId

int

scheme ID

Path

GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/1/holiday
Response
[ { "id": 1, "date": "1970-12-25", "yearly": true, "description": "Christmas", "holidaySchemeId": 1 }, { "id": 2, "date": "1970-01-01", "yearly": true, "description": "New year", "holidaySchemeId": 1 } ]

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

Name

Type

Description

schemeId

int

scheme ID

JSON body fields

Name

Type

Description

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

Path
Body
Response

PATCH

Update holiday

Returns and Update existing holiday.

Permissions: ADMIN USER SUPERVISOR HR

Responses: 200 400 404 500

Path params

Name

Type

Description

Name

Type

Description

schemeId

int

scheme ID

holidayId

int

holiday ID

JSON body fields

Name

Type

Description

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

Path
Body
Response

DELETE

Delete holiday from scheme

Deletes existing holiday.

Permissions: ADMIN USER SUPERVISOR HR

Responses: 204 404 500

Path params

Name

Type

Description

Name

Type

Description

schemeId

int

scheme ID

holidayId

int

holiday ID

Path

Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net