Deletes a pending timesheet.
Delete
| 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 |
| Action | Yes | The action to perform | action=delete | |
| Input | Yes | JSON string | See below |
| JSON Input | Mandatory | Description | Examples |
|---|---|---|---|
| Identifier | Yes | Data to identify the timesheet | "tspEntryNo":14822 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/tspending.json?&version=6&action=delete&input={
"data": [
{
"tspEntryNo": 14822
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/tspending.json?&version=6&action=delete&input={
"data": [
{
"tspEntryNo": 14822
}
]
}&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"tspEntryNo": 14822,
"tspUuid": "F9896E8E3EBAD047A0C346C8929BA0DD"
}
]
}