API Documentation
Timesheets - Bulk ¶
Timesheets - Bulk ¶
The Timesheets Bulk endpoint enables efficient management of multiple timesheets simultaneously. This API provides bulk operations for creating and deleting timesheets.
Available Actions
-
Create
-
Delete
POST /api/v2/timesheets
Requests
POST /api/v2/timesheets
Headers
Accept: application/vnd.api+json; ext=bulk
Content-Type: application/vnd.api+json; ext=bulkBody
{
"data": [
{
"type": "timesheets",
"attributes": {
"date": "2024-08-28"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "9198"
}
}
}
},
{
"type": "timesheets",
"attributes": {
"date": "2024-08-29"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "9198"
}
}
}
}
]
}Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": [
{
"id": "1",
"type": "timesheets",
"attributes": {
"date": "2024-08-28",
"created_at": "2026-03-11T05:21:35.622+01:00"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2469"
}
},
"person": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
}
}
},
{
"id": "2",
"type": "timesheets",
"attributes": {
"date": "2024-08-29",
"created_at": "2026-03-11T05:21:35.626+01:00"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2469"
}
},
"person": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
}
}
}
],
"meta": {}
}Create timesheetsPOST/api/v2/timesheets
URI Parameters
- date
date(required) Example: 2024-01-01date
- person_id
number(required) Example: 1person id
DELETE /api/v2/timesheets
Requests
DELETE /api/v2/timesheets
Headers
Accept: application/vnd.api+json; ext=bulk
Content-Type: application/vnd.api+json; ext=bulkBody
{
"data": [
{
"id": 7,
"type": "timesheets"
},
{
"id": 8,
"type": "timesheets"
}
]
}Responses
This response has no content.
Generated by aglio on 11 Mar 2026