curl --request POST \
--url https://api.absentify.com/api/v1/requests \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"start_at": "morning",
"end_at": "lunchtime",
"leave_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"requester_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Create a request
curl --request POST \
--url https://api.absentify.com/api/v1/requests \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"start_at": "morning",
"end_at": "lunchtime",
"leave_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"requester_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Successful response
The response is of type string<uuid>
.
Was this page helpful?