curl --request POST \
--url https://api.plane.com/v1/leave-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"worker": "<string>",
"type": "<string>",
"dates": [
{}
],
"note": "<string>",
"status": "<string>"
}
'Create a leave request for a worker.
curl --request POST \
--url https://api.plane.com/v1/leave-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"worker": "<string>",
"type": "<string>",
"dates": [
{}
],
"note": "<string>",
"status": "<string>"
}
'requested or approved. Defaults to requested.status: "approved" when you want the request to affect leave balances immediately without a
separate approval step.Was this page helpful?