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

Parameters: deny_timesheet
NameTypeDescription
timesheet_id integer required integer Timesheet ID from list_timesheets.
denial_reason string required string Why the timesheet is denied.

Request

cURL
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"}'
Python
result = client.call("hubstaff", "deny_timesheet", {"timesheet_id":1,"denial_reason":"denial reason"})
Node.js
const result = await cotlet.call('hubstaff', 'deny_timesheet', {"timesheet_id":1,"denial_reason":"denial reason"});
CLI
cotlet call hubstaff deny_timesheet --data '{"timesheet_id":1,"denial_reason":"denial reason"}'

Example response

JSON

{
  "timesheet_id": 8841202,
  "user_id": 3012,
  "status": "denied",
  "denial_reason": "Overlaps a manual entry for 12 Oct, please resubmit"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.