timesheet-entry

Get Many TimesheetEntries

Get Many TimesheetEntries

Securitybearer
Request
query Parameters
select
Array of strings

Select TimesheetEntry fields, comma-separated. (e.g. select=id,firstName,lastName,workEmail)

Items Enum: "id" "timesheetId" "typeId" "employeeId" "date" "updated" "status" "minutes" "note" "projectId" "startDate" "endDate" "clockInDate" "clockOutDate" "originalClockInDate" "originalClockOutDate"
relations
Array of strings

Select related TimesheetEntry resources, comma-separated. (e.g. relations=office,department)

Items Enum: "employee" "timesheet" "type"
object

Filters conditions per field. (e.g. filters[id][$eq]=507f1f77bcf86cd799439011)

limit
integer

Limit amount of received TimesheetEntries. (e.g. limit=20)

offset
integer

Offset amount of received TimesheetEntries. (e.g. offset=20)

object

Sort received TimesheetEntries by field. (e.g. sort[id]=asc)

Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal server error

get/timesheet-entry
Response samples
application/json
{
  • "status": "ok",
  • "data": [
    ],
  • "total": 500,
  • "count": 50,
  • "offset": 50,
  • "relations": {
    }
}

Create One TimesheetEntry

Create One TimesheetEntry

Securitybearer
Request
Request Body schema: application/json
required
typeId
required
string
employeeId
required
string
date
required
string <date-time>
minutes
required
number
note
string
Responses
201
400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal server error

post/timesheet-entry
Request samples
application/json
{
  • "typeId": "507f1f77bcf86cd799439011",
  • "employeeId": "507f1f77bcf86cd799439011",
  • "date": "2019-08-24T14:15:22Z",
  • "minutes": 0,
  • "note": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Get One TimesheetEntry

Get One TimesheetEntry

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
query Parameters
select
Array of strings

Select TimesheetEntry fields, comma-separated. (e.g. select=id,firstName,lastName,workEmail)

Items Enum: "id" "timesheetId" "typeId" "employeeId" "date" "updated" "status" "minutes" "note" "projectId" "startDate" "endDate" "clockInDate" "clockOutDate" "originalClockInDate" "originalClockOutDate"
relations
Array of strings

Select related TimesheetEntry resources, comma-separated. (e.g. relations=office,department)

Items Enum: "employee" "timesheet" "type"
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

get/timesheet-entry/{id}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    },
  • "relations": {
    }
}

Update One TimesheetEntry

Update One TimesheetEntry

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Request Body schema: application/json
required
typeId
string
employeeId
string
date
string <date-time>
minutes
number
note
string
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

patch/timesheet-entry/{id}
Request samples
application/json
{
  • "typeId": "507f1f77bcf86cd799439011",
  • "employeeId": "507f1f77bcf86cd799439011",
  • "date": "2019-08-24T14:15:22Z",
  • "minutes": 0,
  • "note": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Replace One TimesheetEntry

Replace One TimesheetEntry

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Request Body schema: application/json
required
typeId
string
employeeId
string
date
string <date-time>
minutes
number
note
string
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

put/timesheet-entry/{id}
Request samples
application/json
{
  • "typeId": "507f1f77bcf86cd799439011",
  • "employeeId": "507f1f77bcf86cd799439011",
  • "date": "2019-08-24T14:15:22Z",
  • "minutes": 0,
  • "note": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Delete One TimesheetEntry

Delete One TimesheetEntry

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Responses
204
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

delete/timesheet-entry/{id}
Response samples
application/json
{
  • "status": "ok",
  • "data": { }
}