Skip to content

OpenAPI Spec​

GET
/v2/time-sheet-weeks/spec

Get OpenAPI 3.1.0 spec for TimeSheetWeek API

Responses​

Returns OpenAPI 3.1.0 spec for TimeSheetWeek API

application/json
JSON
{
}

Playground​

Samples​


List TimeSheetWeeks​

GET
/v2/time-sheet-weeks

List TimeSheetWeeks

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Query Parameters

page
Type
number
Minimum
0
Default
0
size
Type
number
Minimum
1
Maximum
20
Default
10
uuid
userUuid
weekStart
status
externalId
createdAt
updatedAt

Responses​

List response

application/json
JSON
{
  
"page": 0,
  
"pages": 0,
  
"size": 10,
  
"items": [
  
  
{
  
  
  
"uuid": "string",
  
  
  
"userUuid": "string",
  
  
  
"weekStart": "string",
  
  
  
"status": "string",
  
  
  
"submittedCount": 0,
  
  
  
"approvedCount": 0,
  
  
  
"declinedCount": 0,
  
  
  
"submittedAt": "string",
  
  
  
"approvedAt": "string",
  
  
  
"declinedAt": "string",
  
  
  
"sumActual": 0,
  
  
  
"sumTarget": 0,
  
  
  
"hasMultipleDayTimeEntryCount": 0,
  
  
  
"recomputableCount": 0,
  
  
  
"hasOpenTimeEntryCount": 0,
  
  
  
"openTimeEntryEarliestDay": "string",
  
  
  
"computedAt": "string",
  
  
  
"externalId": "string",
  
  
  
"createdAt": "string",
  
  
  
"updatedAt": "string"
  
  
}
  
]
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​


Get a TimeSheetWeek​

GET
/v2/time-sheet-weeks/{timeSheetWeekUuid}

Get a TimeSheetWeek by ID

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​


Update a TimeSheetWeek​

PATCH
/v2/time-sheet-weeks/{timeSheetWeekUuid}

Update a TimeSheetWeek by ID

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Request Body​

application/json
JSON
{
  
"externalId": "string"
}

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​


Find or create a TimeSheetWeek by user and week start​

POST
/v2/time-sheet-weeks/by-user

Answers the TimeSheetWeek of userUuid starting on weekStart (the Monday of the ISO week), creating it if it does not exist yet. A weekStart more than 3 calendar months ahead is rejected with 400.

Authorizations​

apiKey
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"userUuid": "string",
  
"weekStart": "string"
}

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Body

Samples​


Submit a TimeSheetWeek​

POST
/v2/time-sheet-weeks/{timeSheetWeekUuid}/submit

Moves every draft or declined day of the week to submitted, creating the week's missing days, and answers the week with its status recomputed. Days in any other state stay as they are. Takes no body.

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​


Approve a TimeSheetWeek​

POST
/v2/time-sheet-weeks/{timeSheetWeekUuid}/approve

Moves every submitted day of the week to approved, creating the week's missing days, and answers the week with its status recomputed. Days in any other state stay as they are. Takes no body.

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​


Decline a TimeSheetWeek​

POST
/v2/time-sheet-weeks/{timeSheetWeekUuid}/decline

Moves every submitted or approved day of the week to declined, creating the week's missing days, and answers the week with its status recomputed. Days in any other state stay as they are. Takes an optional declinedNote, set on every day it declines.

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Request Body​

application/json
JSON
{
  
"declinedNote": "string"
}

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​


Reset a TimeSheetWeek​

POST
/v2/time-sheet-weeks/{timeSheetWeekUuid}/reset

Moves every submitted, approved or declined day back to draft of the week to draft, creating the week's missing days, and answers the week with its status recomputed. Days in any other state stay as they are. Takes no body.

Authorizations​

apiKey
Type
HTTP (bearer)

Parameters​

Path Parameters

timeSheetWeekUuid*
Type
string
Required
Format
"uuid"

Responses​

TimeSheetWeek found

application/json
JSON
{
  
"uuid": "string",
  
"userUuid": "string",
  
"weekStart": "string",
  
"status": "string",
  
"submittedCount": 0,
  
"approvedCount": 0,
  
"declinedCount": 0,
  
"submittedAt": "string",
  
"approvedAt": "string",
  
"declinedAt": "string",
  
"sumActual": 0,
  
"sumTarget": 0,
  
"hasMultipleDayTimeEntryCount": 0,
  
"recomputableCount": 0,
  
"hasOpenTimeEntryCount": 0,
  
"openTimeEntryEarliestDay": "string",
  
"computedAt": "string",
  
"externalId": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​