Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each vacation type could have defined default vacation definitions - automatically assigned vacation days for new users.

Methods

POST

Anchor
createDefaultValues
createDefaultValues

...

Expand
titleUpdate default vacation definition

Updates and returns default vacation definition object.

Path

Code Block
PUT {jira_baseurl}/rest/vacation-manager/1.0/default-vacation-definition/{defaultVacationDefinitionId}

Permissions

Status
colourGreen
titleADMIN
 
Status
colourRed
titleUSER
 
Status
colourRed
titleSUPERVISOR
 
Status
colourRed
titleHR


Path params

NameTypeDescription
defaultVacationDefinitionIdintId of default values object to update

JSON body fields

Same as in create default values endpoint.

Responses

Status
colourGreen
title200
 
Status
colourYellow
title400
 
Status
colourYellow
title404
 
Status
colourRed
title500

Example

Expand
titleExample


Code Block
titlePath
PUT {jira_baseurl}/rest/vacation-manager/1.0/default-vacation-definition/2


Code Block
titleBody
{
  "vacationTypeId": 2,
  "daysCountLimit": 25,
  "defaultPeriodType": "RECURRING_PERIOD_OFFSET",
  "periodOffset": 2
}


Code Block
titleResponse
{
    "id": 2,
    "vacationTypeId": 2,
    "daysCountLimit": 25.0,
    "defaultPeriodType": "RECURRING_PERIOD_OFFSET",
    "periodOffset": 2
}



...