4.2 Add leave record

post /rest/shdsd-Timesheet/3/leave

API Documentation

Create and submit leave record.

Media type

  • application/json

Request example

{ "userKey": "JIRAUSER10000", "typeId": 1, "date": "2024-09-02,2024-09-03", "dailyLeaveTime": "8h", "memo":"Complete functional design" }

Request BODY Details

Parameter

Type

Description

Required

Default Value

Parameter

Type

Description

Required

Default Value

userName

String

Username of the leave record. Either userKey or userName must be filled in.

Not required

 

userKey

String

User Key of the leave record. Either userName or userKey must be filled in

Not required

 

memo

String

Notes for the leave record.

Not required

 

date

String

Leave dates yyyy-MM-dd. Multiple dates separated by commas.

Required

 

typeId

Integer

Type of the leave record.

Required

 

dailyLeaveTime

String

Daily duration of leave (For example:2h, 1h 30m, 30m)

Required

 

Return Example

{ "msg": "ok" }