Overview
Vacation Manager's REST API provides team API which allows you to obtain:
Methods:
GET
...
title | Get teams list |
---|
Get list of all teams.
Path
...
Table of Contents | ||||
---|---|---|---|---|
|
GET
Get teams list
Get list of all teams.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Expand | ||||
---|---|---|---|---|
| ||||
Path
Request
|
Get single team
Get information about existing team members.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
Expand | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||
Path
Response
Responses
ExamplePath
Request
|
...
Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
Get information about existing team members. Path
Permissions
|
Get team members
Get information about existing team.
Permissions:
Status | |||
---|---|---|---|
|
...
|
...
...
Status |
---|
...
|
...
Description
...
teamId
...
int
...
Team ID
|
Status | ||||
---|---|---|---|---|
|
Status | |||
---|---|---|---|
|
...
|
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member |
Responses:
Status | |
---|---|
|
...
|
...
Status | ||||
---|---|---|---|---|
|
Example
Path
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team/1 |
Response
...
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
Expand | ||||
---|---|---|---|---|
| ||||
Path
Response
|
...
POST
...
Expand | ||
---|---|---|
| ||
Creates new team. Path
|
...
POST
Create team
Creates new team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
POST {jira_baseurl}/rest/vacation-manager/1.0/team Permissions
|
Responses:
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Team name, must be unique for each team |
description | String (Optional) | Team description |
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
title |
---|
Example |
Path
Code Block |
---|
POST {jira_baseurl}/rest/vacation-manager/1.0/team |
Body
Code Block |
---|
{ "name": "Team name", "description": "Team Description" } |
Response
Code Block |
---|
{ "id": "name": "Team name", "description": "Team Description" } |
...
Expand | |
---|---|
Add member to team
Add member to team.
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
POST {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team id |
JSON body fields
Name | Type | Description |
---|---|---|
type | MemberType | Type of member |
name | String | Name of the member you want to add to the team |
role | MemberRole | Role for member |
MemberType
Name | Type | Description |
---|---|---|
USER | Enum | User type |
GROUP | Enum | Group type |
MemberRole
Name | Type | Description |
---|---|---|
USER | Enum | User role for member |
SUPERVISOR |
...
Enum
...
Supervisor role for member
Responses
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
Enum | Supervisor role for member |
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Path
Add user to teamBody
Response
Add group to teamBody
Response
|
...
PATCH
...
title | Update team |
---|
Update existing team.
...
Update team
Update existing team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
PATCH {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Team name, must be unique |
description | String (Optional) | Team description |
...
allowUsersViewStatistics |
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
bool (Optional) | as name says, it’s boolean value that can be either true or false, | |
defaultSupervisorId | int (Optional) | ID (number value - not user name!) of a user that will be set as default supervisor, -1 means that this value will be cleared and default supervisor will be removed from team. |
Expand | |||||
---|---|---|---|---|---|
| |||||
Path
Body
Request
|
...
|
...
|
...
|
...
|
...
|
...
|
...
DELETE
...
title | Delete team |
---|
Delete existing team.
...
|
...
DELETE
Delete team
Delete existing team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
...
Expand | ||
---|---|---|
| ||
Request
|
Remove member from team
Remove member from team.
Permissions:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |||
---|---|---|---|
|
...
|
...
...
title | Remove member from team |
---|
Remove member from team.
Path
Status |
---|
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/1 |
...
|
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |||
---|---|---|---|
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
JSON body fields
Name | Type | Description |
---|---|---|
type | String | Type of member to remove
|
name | String | Name of the member you want to remove from the team |
role | String | Role for member to remove
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
title | Example |
---|
Path
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/1/member |
Body
Code Block |
---|
{ "type":"GROUP", "name":"users", "role":"USER" } |