v1

latestOpenAPI 3.0.12026-08-041753011.2 MB
Balance Assignment

Creates a new balance assignment for a user in policy

post/v1/workspaces/{workspaceId}/time-off/balance/assignment

Path parameters

workspaceIdstring required

Represents workspace identifier across the system.

Example:60f91b3ffdaf031696ec61a8

Represents workspace identifier across the system.

Request body

balancenumber double required

Represents the amount of balance to be created

notestring

Represents note attached to updating balance.

policyIdstring required

Represents the identifier of the policy where the balance assignment will be created

userIdsstring[] required

Represents list of users' identifiers whose balance is to be updated.

Example request

{
  "balance": 12,
  "dateRange": {
    "end": "2021-12-25",
    "start": "2021-12-23"
  },
  "note": "Bonus days added.",
  "policyId": "63034cd0cb0fb876a57e93ad",
  "userIds": [
    "5b715448b079875110792222",
    "5b715448b079875110791111"
  ]
}

Response

Created