Approve or deny manual time request

Approve or deny one manual time request that is waiting for review.

POST https://cotlet.dev/api/v1/hubstaff/requests/{request_id}/manual-time-request/review

write Confirm

Approves or denies one submitted request. Approving adds activity for the full requested range, subject to limits, collisions, budgets and timesheets; if Hubstaff warns about one of them, the call returns the warning and changes nothing. Denying needs a reason. Requests that are no longer submitted cannot be changed. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: review_manual_time_request
NameTypeDescription
request_id integer required integer Request ID from list_manual_time_requests.
decision string required string approve or deny.
denial_reason string string Required when decision is deny.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/hubstaff/requests/5530121/manual-time-request/review \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision":"deny","denial_reason":"Over 4 hours, please add a reason and resubmit"}'
Python
result = client.call("hubstaff", "review_manual_time_request", {"request_id":5530121,"decision":"deny","denial_reason":"Over 4 hours, please add a reason and resubmit"})
Node.js
const result = await cotlet.call('hubstaff', 'review_manual_time_request', {"request_id":5530121,"decision":"deny","denial_reason":"Over 4 hours, please add a reason and resubmit"});
CLI
cotlet call hubstaff review_manual_time_request --data '{"request_id":5530121,"decision":"deny","denial_reason":"Over 4 hours, please add a reason and resubmit"}'

Example response

JSON

{
  "request_id": 5530117,
  "status": "approved",
  "user_id": 3011,
  "project_id": 90311,
  "tracked": 5400
}

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.