cURL
curl --request POST \ --url https://www.ruddr.io/api/workspace/time-off-types \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "isActive": true, "isPaid": true } '
{ "id": "7c3a1d82-4f9e-4b6c-a2d5-1e8f03c947b6", "name": "Vacation", "isActive": true, "isPaid": true, "createdAt": "2025-03-12T14:22:37.891Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The name of the time off type.
Whether the time off type is active.
Whether time off of this type is paid.
200
The unique identifier for the object.
The timestamp when the object was created.