Skip to main content
POST
/
v1
/
scanner
/
leave
/
{id}
/
decline
Decline leave request
curl --request POST \
  --url http://localhost:3000/v1/scanner/leave/{id}/decline \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "error": "<string>",
  "deputy_configured": true
}

Path Parameters

id
string
required

Leave request ID

Example:

"12345"

Body

application/json
comment
string

Response

Leave declined successfully

success
boolean
message
string
error
string
deputy_configured
boolean