[REST 1.1] Holiday schemes
GET
Get holiday schemes list
Returns list of holiday schemes.
Permissions: ADMIN USER SUPERVISOR HR
GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme
Responses: 200 500
Get holiday scheme for user
Returns holiday scheme used by given user.
Permissions: ADMIN USER SUPERVISOR HR
GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/user/{userName}
Responses: 200 500
Query params
Name | Type | Description |
---|---|---|
userName | string | User name |
POST
Create holiday scheme
Creates and return new holiday scheme.
Permissions: ADMIN USER SUPERVISOR HR
POST {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme
Responses: 201 400 500
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Holiday scheme name, must be unique for each scheme |
PATCH
Update holiday scheme
Updates and return existing holiday scheme.
Permissions: ADMIN USER SUPERVISOR HR
PATCH {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/{schemeId}
Responses: 200 400 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | int | Holiday scheme ID |
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Holiday scheme new name |
PUT
Assign holiday scheme to users
Assigns holiday scheme to users.
Permissions: ADMIN USER SUPERVISOR HR
PUT {jira_baseurl}/rest/vacation-manager/1.0/vacman-user/holidays/bulk
Responses: 200 400 404 500
JSON body fields
Name | Type | Description |
---|---|---|
schemeId | Integer | Id of holiday scheme you want to assign to users |
userNames | Array<String> | Names of users you want to assign holiday scheme to |
DELETE
Delete holiday scheme
Deletes existing holiday scheme.
Permissions: ADMIN USER SUPERVISOR HR
DELETE {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/{schemeId}
Responses: 204 404 500
Path params
Name | Type | Description |
---|---|---|
schemeId | Integer | Id of holiday scheme you want to assign to users |
Related content
Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net