SupportContact salesStart free trial
  • Getting started
    • Overview
    • Authentication
    • Querying tutorial
    • OData Integrations
    • Work Breakdown Structure
    • Software Development Kits
    • API Patch Notes
    • FAQ
    • Terms of use
  • API Reference
LogoLogo
SupportContact salesStart free trial
API ReferenceTimesheet

Approve Resource TimeSheet Approval Request

POST
https://api.projectmanager.com/api/data/timesheets/approvals/approve
POST
/api/data/timesheets/approvals/approve
1curl -X POST https://api.projectmanager.com/api/data/timesheets/approvals/approve \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "date": "2024-01-15T09:30:00Z"
6}'
Try it
200Successful
1{
2 "error": {
3 "technicalError": "string",
4 "additionalErrors": [
5 "string"
6 ],
7 "validationErrors": {},
8 "message": "string"
9 },
10 "success": true,
11 "hasError": true,
12 "statusCode": "Continue",
13 "data": {
14 "modifiedDate": "2024-01-15T09:30:00Z",
15 "pendingApprovals": [
16 {
17 "resourceId": "string",
18 "date": "2024-01-15T09:30:00Z",
19 "resourceName": "string"
20 }
21 ]
22 }
23}
Approve a timesheet approval request
Was this page helpful?
Previous

Reject Resource TimeSheet Approval Request

Next
Built with
Reject Resource TimeSheet Approval Request
Approve a timesheet approval request

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-integration-namestringOptional
The name of the calling system passed along as a header parameter

Request

The timesheet to approve
datestringRequiredformat: "date-time"
The date of the week to which the timesheet applies
resourceIdstring or nullOptionalformat: "uuid"
The id for the resource, if null it indicates the request is for the current logged-in user

Response

Success
errorobject or null
If the API call failed, this will contain information about the error that occurred.
successboolean or null

True if the API call succeeded; false otherwise.

hasErrorboolean or null
True if the API call failed.
statusCodeenum or null
The HTTP code of the response.
dataobject or null
Holds the list of pending timesheet approvals

The id for the resource, if null it indicates the request is for the current logged-in user