Deny timesheet
Deny a timesheet with a reason so the member can fix it.
POST https://cotlet.dev/api/v1/hubstaff/timesheets/{timesheet_id}/deny
write Confirm
Denies one timesheet and records your reason. Use it to reopen a timesheet that was approved too early, too. A reason is required. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| timesheet_id integer required | integer | Timesheet ID from list_timesheets. |
| denial_reason string required | string | Why the timesheet is denied. |
Request
curl -X POST https://cotlet.dev/api/v1/hubstaff/timesheets/1/deny \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"denial_reason":"denial reason"}' result = client.call("hubstaff", "deny_timesheet", {"timesheet_id":1,"denial_reason":"denial reason"}) const result = await cotlet.call('hubstaff', 'deny_timesheet', {"timesheet_id":1,"denial_reason":"denial reason"}); cotlet call hubstaff deny_timesheet --data '{"timesheet_id":1,"denial_reason":"denial reason"}' Example response
{
"timesheet_id": 8841202,
"user_id": 3012,
"status": "denied",
"denial_reason": "Overlaps a manual entry for 12 Oct, please resubmit"
}