[REST 1.1] Vacation definitions
GET
Get vacation definition
Returns all vacation definitions for current user or only selected one vacation definition.
Permissions: ADMIN USER SUPERVISOR HR
GET {jira_baseurl}/rest/vacation-manager/1.0/vacation-definition/user/{userName}?vacationTypeId={vacationTypeId}
Responses: 200 400 500
Path params
Name | Type | Description |
---|---|---|
userName | String | User name |
Query params
Name | Type | Description |
---|---|---|
vacationTypeId | int | Vacation type Id |
Get vacation definition with given ID
Returns vacation definition with given ID
Permissions: ADMIN USER SUPERVISOR HR
Responses: 200 400 500
Path params
Name | Type | Description |
---|---|---|
vacationDefinitionId | int | Vacation definition ID |
Get vacation instances for vacation definition
Returns list of vacation instances for given vacation definition,
Permissions: ADMIN USER SUPERVISOR HR
Responses: 200 400 500
Path params
Name | Type | Description |
---|---|---|
vacationDefinitionId | int | Vacation definition ID |
POST
Create vacation definition
Creates and returns vacation definition.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 201 400 500
JSON body fields
Name | Type | Description |
---|---|---|
vacationTypeId | Integer | vacation type id |
userName | String | username to which dew vacation definition will be assigned |
startDate | String | Date when user is enabled to request vacation using this definition. ISO 8601 format. |
endDate | String | Date when one time vacation type no longer enables user to request vacation using it. Must be used only when vacation has valid through option enabled. ISO 8601 format. |
dayLimit | Double | Default day limit. Should be integer when vacation is "daily only" or "daily or hourly". May contain additional half if vacation is "daily or half daily" |
PUT
Update vacation definition
Returns and updates vacation definition.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 200 400 500
Path params
Name | Type | Description |
---|---|---|
vacationDefinitionId | int | Vacation definition ID |
JSON body fields
Name | Type | Description |
---|---|---|
dayLimit | double | Day limit |
DELETE
Delete vacation definition
Deletes vacation definition.
Permissions: ADMIN USER SUPERVISOR HR
Responses: 204 404 500
Path params
Name | Type | Description |
---|---|---|
vacationDefinitionId | int | Vacation definition ID |
Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net