Skip to main content
POST
/
contract
/
v1
/
employee-leave
/
employees
/
{employeeId}
Create an employee leave
curl --request POST \
  --url https://api-{region}.sesametime.com/contract/v1/employee-leave/employees/{employeeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endDate": "2024-12-31",
  "leaveReasonId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "employeeLeaveTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "comment": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "employeeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "endDate": "2024-12-31",
    "employeeLeaveType": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "Dismissal",
      "editable": true,
      "createdAt": "2020-01-01T10:00:00+01:00",
      "updatedAt": "2020-01-01T10:00:00+01:00"
    },
    "leaveReason": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "Voluntary resignation",
      "editable": true,
      "createdAt": "2020-01-01T10:00:00+01:00",
      "updatedAt": "2020-01-01T10:00:00+01:00"
    },
    "comment": "<string>",
    "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2020-01-01T10:00:00+01:00",
    "updatedAt": "2020-01-01T10:00:00+01:00"
  },
  "meta": {
    "currentPage": 1,
    "lastPage": 1,
    "total": 1,
    "perPage": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://apidocs.sesametime.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

employeeId
string<uuid>
required

The employee ID

Body

application/json
endDate
string<date>
required

Leave effective date (Y-m-d)

Example:

"2024-12-31"

leaveReasonId
string<uuid>
required

Leave reason ID (required)

employeeLeaveTypeId
string<uuid>
required

Employee leave type ID (voluntary/involuntary classification)

contractId
string<uuid>
required

Contract ID to terminate along with the leave

comment
string | null

Optional comment

Response

Successful response

data
object
meta
object