Overview
Vacation Manager's REST API provides workweek scheme API which allows you to obtain:
...
Expand |
---|
title | Update workweek scheme |
---|
|
Update and return existing workweek scheme. Path Code Block |
---|
PATCH {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/{schemeId} |
Permissions
Path params
JSON body fieldsName | 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 |
DayOfWeekWorkweekSchemeType
Example Expand |
---|
|
Code Block |
---|
| PATCH {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/2 |
Code Block |
---|
| {
"name": "Workweek scheme new name",
"workweekMinutes": {
"FRIDAY": 480,
"MONDAY": 400,
"WEDNESDAY": 800,
"SUNDAY": 0,
"TUESDAY": 480,
"SATURDAY": 0,
"THURSDAY": 400
},
"type": "SEPARATE_WORK_MINUTES_FOR_EACH_DAY"
} |
Code Block |
---|
| {
"id": 2,
"name": "Workweek scheme new name",
"workweekMinutes": {
"FRIDAY": 480,
"MONDAY": 400,
"WEDNESDAY": 800,
"SUNDAY": 0,
"TUESDAY": 480,
"SATURDAY": 0,
"THURSDAY": 400
},
"type": "SEPARATE_WORK_MINUTES_FOR_EACH_DAY"
} |
|
|
PUT
Anchor |
---|
| assignToUsers |
---|
| assignToUsers |
---|
|
Expand |
---|
title | Assign workweek scheme to users |
---|
|
Assigns workweek scheme to users. Path Code Block |
---|
PUT {jira_baseurl}/rest/vacation-manager/1.0/vacmanuser/workweek/bulk |
Permissions JSON body fieldsName | Type | Description |
---|
schemeId | Integer | Id of workweek scheme you want to assign to users | userNames | Array<String> | Names of users you want to assign holiday scheme to |
Responses Example Expand |
---|
|
Code Block |
---|
| PUT {jira_baseurl}/rest/vacation-manager/1.0/vacmanuser/workweek/bulk |
Code Block |
---|
| {
"schemeId": 1,
"userNames": ["john", "jack"]
} |
Code Block |
---|
| {
"userNames": [
"john",
"jack"
],
"schemeId": 1
} |
|
|
DELETE
Expand |
---|
title | Delete workweek scheme |
---|
|
Deletes existing workweek scheme. Path Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/{schemeId} |
PermissionsADMIN USER SUPERVISOR HR
Example Expand |
---|
|
Code Block |
---|
| DELETE {jira_baseurl}/rest/vacation-manager/1.0/workweek-scheme/1 |
|
|
...