Openapi
Create a time-off request in hours. It is routed to the employee's manager for approval.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe time-off request.
application/jsonacknowledgeWarnings?booleanemployeeId?stringuuidendPart*string"full""full""morning""afternoon""hours"endTime?|nullendsOn*isoDateSchemadatenote*|length <= 2000startPart*string"full""full""morning""afternoon""hours"startTime?|nullstartsOn*isoDateSchemadatetimeOffTypeId*stringuuidReturns the created request.
application/jsonallowedNegativeHours*number|nullbalanceAfterApproval*number|nullcanDecide*booleancanceledAt*string|nullcreatedAt*stringdecidedAt*string|nulldecidedBy*|uuiddecisionNote*string|nulldeductsBalance*booleanemployee*employeeId*stringuuidendPart*timeOffPartialDaySchema"full""morning""afternoon""hours"endTime*string|nullendsOn*isoDateSchemadatehasAttachment*booleanhours*numberid*stringuuidmasked*booleanneedsRecalculation*booleannote*string|nullstartPart*timeOffPartialDaySchema"full""morning""afternoon""hours"startTime*string|nullstartsOn*isoDateSchemadatestatus*timeOffRequestStatusSchema"pending""approved""rejected""canceled"timeOffTypeId*|uuidtypeCategory*|nulltypeColor*string|nulltypeName*stringcurl -X POST 'https://app.localhost/api/v1/organizations/123/time-off-requests' \ -H 'Content-Type: application/json' \ -d '{ "endPart": "full", "endsOn": "2019-08-24", "note": "string", "startPart": "full", "startsOn": "2019-08-24", "timeOffTypeId": "8506ed76-43a7-45a4-95d8-afc0870f803b"}'{ "allowedNegativeHours": 0, "balanceAfterApproval": 0, "canDecide": true, "canceledAt": "string", "createdAt": "string", "decidedAt": "string", "decidedBy": "3a741861-b09d-4f52-b451-be998c2bf2d1", "decisionNote": "string", "deductsBalance": true, "employee": { "avatarUrl": "string", "displayName": "string", "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "jobTitle": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" }, "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "endPart": "full", "endTime": "string", "endsOn": "2019-08-24", "hasAttachment": true, "hours": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "masked": true, "needsRecalculation": true, "note": "string", "startPart": "full", "startTime": "string", "startsOn": "2019-08-24", "status": "pending", "timeOffTypeId": "8506ed76-43a7-45a4-95d8-afc0870f803b", "typeCategory": "vacation", "typeColor": "string", "typeName": "string"}