time-tracking

Change the status of multiple time entries

Updates multiple resources queried by given filters.

patch/time-tracking

Request

  • Base URL: https://api.hoorayhr.io
  • URL: https://api.hoorayhr.io/time-tracking
  • Auth: API key in header authorization

Query parameters

id[$in]integer[] required

The IDs of the entries to patch

Request body

status'NOT_LOGGED' | 'CONCEPT' | 'REQUEST' | 'APPROVED' | 'DENIED' required

Response

The patched time entries

idinteger required
userIdinteger required
startDatestring date required
endDatestring date required
period'DAY' | 'WEEK' required
status'NOT_LOGGED' | 'CONCEPT' | 'REQUEST' | 'APPROVED' | 'DENIED' required
createdAtstring date-time required
updatedAtstring date-time required

Example response

[
  {
    "activities": [
      {
        "timezone": "Europe/Amsterdam",
        "notes": "Optional notes for the activity",
        "labels": [
          {
            "id": 5,
            "name": "Project epsilon",
            "type": "TIME_TRACKING",
            "systemCategoryType": "car",
            "createdAt": "2022-02-23T14:01:17.516Z",
            "updatedAt": "2022-02-23T14:01:17.516Z"
          }
        ]
      }
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.