Overview
Vacation Manager's REST API provides workweek scheme API which allows you to obtain:
- create workweek scheme
- update workweek scheme
- assign workweek scheme to users
- delete Workweek Scheme
- get workweek schemes list
- get single workweek scheme
- get workweek scheme for user
Methods:
GET
...
Table of Contents | ||||
---|---|---|---|---|
|
GET
Get workweek schemes list
Returns list of workweek schemes
...
Path
...
.
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | |||
---|---|---|---|
|
...
|
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Expand | ||
---|---|---|
|
...
Path
Response
|
...
title |
---|
Get single workweek scheme
Returns information about existing
...
Path
...
workweek
...
scheme
...
.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
schemeId | int | Scheme ID |
Code Block | ||
GET {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/{schemeId} |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Path param
Name | Type | Description |
---|---|---|
schemeId | int | Scheme ID |
Expand | ||
---|---|---|
|
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
Path
Response
|
...
Get workweek scheme for user
Returns workweek scheme used by given user
...
Path
...
.
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
userName | String | User Name |
Code Block | ||
GET {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme?userName={userName} |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||
---|---|---|
|
...
|
Query params
Name | Type | Description |
---|---|---|
userName | String | User Name |
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Path
Response
|
...
Expand | |||
---|---|---|---|
| |||
Creates and returns new workweek scheme. Path
|
POST
...
|
...
POST
Create new workweek scheme
Creates and returns new workweek scheme.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
POST {jira_baseurl}/rest/vacation-manager/1.0/workweek- schemePermissions
scheme |
Responses:
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Workweek scheme name |
workweekMinutes | Map<DayOfWeek, Integer> | Day of week : working time in minutes |
type | WorkweekSchemeType | Type of work week scheme |
DayOfWeek
Name | Type | Description |
---|---|---|
MONDAY | Enum | Monday |
TUESDAY | Enum | Tuesday |
WEDNESDAY | Enum | Wednesday |
THURSDAY | Enum | Thursday |
FRIDAY | Enum | Friday |
SATURDAY | Enum | Saturday |
SUNDAY | Enum | Sunday |
WorkweekSchemeType
Name | Type | Description |
---|---|---|
SAME_WORK_MINUTES_FOR_ALL_DAYS | Enum | Type of the same work minutes for all days |
SEPARATE_WORK_MINUTES_FOR_EACH_DAY | Enum | Type of separate work minutes for each day |
...
Responses
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Path
Body
Response |
...
Expand | ||||
---|---|---|---|---|
| ||||
Update and return existing workweek scheme. Path
|
PATCH
...
|
...
PATCH
Update workweek scheme
Update and return existing workweek scheme.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
PATCH {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/{schemeId} Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
schemeId | int | Scheme ID |
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Workweek scheme name |
workweekMinutes | Map<DayOfWeek, Integer> | Day of week : working time in minutes |
type | WorkweekSchemeType | Type of work week scheme |
DayOfWeek
Name | Type | Description |
---|---|---|
MONDAY | Enum | Monday |
TUESDAY | Enum | Tuesday |
WEDNESDAY | Enum | Wednesday |
THURSDAY | Enum | Thursday |
FRIDAY | Enum | Friday |
SATURDAY | Enum | Saturday |
SUNDAY | Enum | Sunday |
WorkweekSchemeType
Name | Type | Description |
---|---|---|
SAME_WORK_MINUTES_FOR_ALL_DAYS | Enum | Type of the same work minutes for all days |
SEPARATE_WORK_MINUTES_FOR_EACH_DAY | Enum | Type of separate work minutes for each day |
...
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Path
Body
Response |
...
Expand | ||||
---|---|---|---|---|
| ||||
Assigns workweek scheme to users. Path
|
PUT
...
|
...
PUT
Assign workweek scheme to users
Assigns workweek scheme to users.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
schemeId | Integer | Id of workweek scheme you want to assign to users |
userNames | Array<String> | Names of users you want to assign workweek scheme to |
Code Block | ||
PUT {jira_baseurl}/rest/vacation-manager/1.0/vacman-user/workweek/bulk |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | |
---|---|
|
...
|
...
|
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
|
JSON body fields
Name | Type | Description | ||
---|---|---|---|---|
schemeId |
| Id of workweek scheme you want to assign to users | ||
userNames |
| Names of users you want to assign workweek scheme to |
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Path
Body
Response
|
...
DELETE
...
title | Delete workweek scheme |
---|
Deletes existing workweek scheme.
...
Delete workweek scheme
Deletes existing workweek scheme.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block | ||
---|---|---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/{schemeId} PermissionsADMIN USER SUPERVISOR HR Path params | ||
Name | Type | Description | schemeId | intScheme ID |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Path params
Name | Type | Description |
---|---|---|
schemeId | int | Scheme ID |
Expand | ||||
---|---|---|---|---|
| ||||
Path
|