API Documentation

API Endpoint

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
Requestscreates timesheets in bulk

POST  /api/v2/timesheets

Headers
Accept: application/vnd.api+json; ext=bulk
Content-Type: application/vnd.api+json; ext=bulk
Body
{
  "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"
          }
        }
      }
    }
  ]
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "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 timesheets
POST/api/v2/timesheets

URI Parameters
HideShow
date
date (required) Example: 2024-01-01

date

person_id
number (required) Example: 1

person id


DELETE /api/v2/timesheets
Requestsdeletes timesheets

DELETE  /api/v2/timesheets

Headers
Accept: application/vnd.api+json; ext=bulk
Content-Type: application/vnd.api+json; ext=bulk
Body
{
  "data": [
    {
      "id": 7,
      "type": "timesheets"
    },
    {
      "id": 8,
      "type": "timesheets"
    }
  ]
}
Responses204
This response has no content.

Deletes timesheets
DELETE/api/v2/timesheets

URI Parameters
HideShow
id
number (required) Example: 1

timesheet id


Generated by aglio on 11 Mar 2026