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
}Decline a leave request in Deputy with optional comment.
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
}