Delete a timesheet
Delete
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | timesheets.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 | "tsuuid": "C8A3BA7E49551847857147BCE655292A" |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/timesheets.json?&version=6&action=delete&company=1&input={
"data": [
{
"tsuuid": "C8A3BA7E49551847857147BCE655292A"
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/timesheets.json?&version=6&action=delete&company=1&input={
"data": [
{
"tsuuid": "C8A3BA7E49551847857147BCE655292A"
}
]
}&user=<username>&password=<password>