Copies a pending timesheet
Pending Copy
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | tspending.json | |
| General | Yes | Parameters described in overview | see overview | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=pendingcopy | |
| Identifier | Yes | Timesheet ID | tspending=686 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/tspending.json?&version=6&action=pendingcopy&tspending=686
Example request (legacy username/password):
http://<SERVER>/jsonapi/tspending.json?&version=6&action=pendingcopy&tspending=686&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "TS pending 686 record copied to 3640",
"warningmessage": "",
"success": true,
"data": [
{
"tspEntryNo": 3640,
"tspUuid": "F8281A58A3F9B942BB013FA483FD762C"
}
]
}