GET api/v1/time-registrations/{timeRegistrationId}

Get a TimeRegistration by TimeRegistrationId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
timeRegistrationId

integer

Required

Body Parameters

None.

Response Information

Resource Description

TimeRegistrationDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

CaseId

integer

None.

CaseName

string

None.

ProjectId

integer

None.

ProjectName

string

None.

TypeId

integer

None.

TypeName

string

None.

Date

date

None.

Hours

time interval

None.

StartTime

time interval

None.

EndTime

time interval

None.

Comment

string

None.

Expenses

Collection of ExpenseDto

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "userId": 2,
  "caseId": 3,
  "caseName": "sample string 4",
  "projectId": 1,
  "projectName": "sample string 5",
  "typeId": 1,
  "typeName": "sample string 6",
  "date": "2025-12-08T10:18:47.1746869+01:00",
  "hours": "00:00:00.1234567",
  "startTime": "00:00:00.1234567",
  "endTime": "00:00:00.1234567",
  "comment": "sample string 8",
  "expenses": [
    {
      "expenseId": 1,
      "expenseTypeId": 2,
      "userId": 3,
      "timeRegistrationId": 4,
      "timestamp": "2025-12-08T10:18:47.1746869+01:00",
      "value": "sample string 5"
    },
    {
      "expenseId": 1,
      "expenseTypeId": 2,
      "userId": 3,
      "timeRegistrationId": 4,
      "timestamp": "2025-12-08T10:18:47.1746869+01:00",
      "value": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<TimeRegistrationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
  <CaseId>3</CaseId>
  <CaseName>sample string 4</CaseName>
  <Comment>sample string 8</Comment>
  <Date>2025-12-08T10:18:47.1746869+01:00</Date>
  <EndTime>PT0.1234567S</EndTime>
  <Expenses>
    <ExpenseDto>
      <ExpenseId>1</ExpenseId>
      <ExpenseTypeId>2</ExpenseTypeId>
      <TimeRegistrationId>4</TimeRegistrationId>
      <Timestamp>2025-12-08T10:18:47.1746869+01:00</Timestamp>
      <UserId>3</UserId>
      <Value>sample string 5</Value>
    </ExpenseDto>
    <ExpenseDto>
      <ExpenseId>1</ExpenseId>
      <ExpenseTypeId>2</ExpenseTypeId>
      <TimeRegistrationId>4</TimeRegistrationId>
      <Timestamp>2025-12-08T10:18:47.1746869+01:00</Timestamp>
      <UserId>3</UserId>
      <Value>sample string 5</Value>
    </ExpenseDto>
  </Expenses>
  <Hours>PT0.1234567S</Hours>
  <Id>1</Id>
  <ProjectId>1</ProjectId>
  <ProjectName>sample string 5</ProjectName>
  <StartTime>PT0.1234567S</StartTime>
  <TypeId>1</TypeId>
  <TypeName>sample string 6</TypeName>
  <UserId>2</UserId>
</TimeRegistrationDto>