POST api/TrackTimeRecords/EditRecord

Edits the track time record.

Request Information

URI Parameters

None.

Body Parameters

EditTrackTimeRecordPost
NameDescriptionTypeAdditional information
Id

(Required) The Time entry Id.

integer

None.

ActivityId

(Required) Activity Id.

integer

None.

TicketId

Bind the Time entry with Ticket.

integer

None.

Public

It can be true if the track time record is related to the ticket.

boolean

None.

Duration

Duration is required if Activity type is Time

time interval

None.

FromUtc

From utc is required if Activity type is Time

date

None.

UntilUtc

Until utc is required if Activity type is Time

date

None.

DateOfImplementationUtc

Date of implementation utc is required if Activity type is General, if Activity type is time date from will be set as this date

date

None.

Description

Description.

string

None.

AssignedToUserProviderKey

(Required) User provider key which is assigned with Time entry.

string

None.

CustomerId

Bind the time entry with Customer.

integer

None.

Price

(Required) Price set for this Time entry.

decimal number

None.

Currency

(Required) Currency set for thie Time entry.

CurrencyEnum

None.

InvoiceState

(Required) Invoice state.

InvoiceStateEnum

None.

ProjectId

Bind the Time entry with Track time project.

integer

None.

Count

Count is required if Activity type is General.

decimal number

None.

InvoicedDate

date

None.

InvoiceNumber

string

None.

Approved

boolean

None.

SplitByDays

boolean

None.

CategoryItemIds

The category item ids for the track time record

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ActivityId": 2,
  "TicketId": null,
  "Public": false,
  "Duration": null,
  "FromUtc": null,
  "UntilUtc": null,
  "DateOfImplementationUtc": "2024-12-22T03:00:53.8317025Z",
  "Description": "Travel",
  "AssignedToUserProviderKey": null,
  "CustomerId": null,
  "Price": 50.0,
  "Currency": 1,
  "InvoiceState": 1,
  "ProjectId": null,
  "Count": 1.0,
  "InvoicedDate": null,
  "InvoiceNumber": null,
  "Approved": false,
  "SplitByDays": true,
  "CategoryItemIds": null
}

application/xml, text/xml

Sample:
<EditTrackTimeRecordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <ActivityId>2</ActivityId>
  <Approved>false</Approved>
  <AssignedToUserProviderKey i:nil="true" />
  <CategoryItemIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Count>1</Count>
  <Currency>CZK</Currency>
  <CustomerId i:nil="true" />
  <DateOfImplementationUtc>2024-12-22T03:00:53.8317025Z</DateOfImplementationUtc>
  <Description>Travel</Description>
  <Duration i:nil="true" />
  <FromUtc i:nil="true" />
  <InvoiceNumber i:nil="true" />
  <InvoiceState>DoNotInvoice</InvoiceState>
  <InvoicedDate i:nil="true" />
  <Price>50</Price>
  <ProjectId i:nil="true" />
  <Public>false</Public>
  <SplitByDays>true</SplitByDays>
  <TicketId i:nil="true" />
  <UntilUtc i:nil="true" />
  <Id>1</Id>
</EditTrackTimeRecordPost>

Response Information

Resource Description

Returns id

EditTrackTimerRecordResult
NameDescriptionTypeAdditional information
TrackTimeRecords

Track time records with last updated date. If the record was splitted by days you will get row for each new entity.

Collection of EditTrackTimerRecordRow

None.

Response Formats

application/json, text/json

Sample:
{
  "TrackTimeRecords": [
    {
      "Id": 1,
      "LastUpdatedUtc": "2024-12-22T14:45:28.5299545+01:00"
    },
    {
      "Id": 1,
      "LastUpdatedUtc": "2024-12-22T14:45:28.5299545+01:00"
    }
  ]
}

application/xml, text/xml

Sample:
<EditTrackTimerRecordResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <TrackTimeRecords>
    <EditTrackTimerRecordResult.EditTrackTimerRecordRow>
      <Id>1</Id>
      <LastUpdatedUtc>2024-12-22T14:45:28.5299545+01:00</LastUpdatedUtc>
    </EditTrackTimerRecordResult.EditTrackTimerRecordRow>
    <EditTrackTimerRecordResult.EditTrackTimerRecordRow>
      <Id>1</Id>
      <LastUpdatedUtc>2024-12-22T14:45:28.5299545+01:00</LastUpdatedUtc>
    </EditTrackTimerRecordResult.EditTrackTimerRecordRow>
  </TrackTimeRecords>
</EditTrackTimerRecordResult>