Skip to main content
POST
/
v1
/
scanner
/
leave
/
{id}
/
approve
Approve leave request
curl --request POST \
  --url http://localhost:3000/v1/scanner/leave/{id}/approve
{
  "success": true,
  "message": "<string>",
  "error": "<string>",
  "deputy_configured": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.switchyard.run/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required

Leave request ID

Example:

"12345"

Response

Leave approved successfully

success
boolean
message
string
error
string
deputy_configured
boolean