external-leave-budgets

Create external leave budget

Creates a new resource with data.

post/external-leave-budgets

Request

  • Base URL: https://api.hoorayhr.io
  • URL: https://api.hoorayhr.io/external-leave-budgets
  • Auth: API key in header authorization

Request body

OR

Example request

{
  "id": 5,
  "externalLeaveTypeId": 5,
  "userId": 2,
  "year": 2024,
  "transferred": 120,
  "received": 12000,
  "expired": 120,
  "spent": 8000,
  "available": 4000,
  "createdAt": "2022-02-15T14:01:17.516Z",
  "updatedAt": "2022-02-23T14:01:17.516Z"
}

Response

created

OR

Example response

{
  "id": 5,
  "externalLeaveTypeId": 5,
  "userId": 2,
  "year": 2024,
  "transferred": 120,
  "received": 12000,
  "expired": 120,
  "spent": 8000,
  "available": 4000,
  "createdAt": "2022-02-15T14:01:17.516Z",
  "updatedAt": "2022-02-23T14:01:17.516Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.