PUT V2/odata/TimeExpenseEntry({key})

Updates TimeExpenseEntry entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.TimeExpenseEntry
NameDescriptionTypeAdditional information
EntryId

Gets or sets the PK

integer

None.

ProjectId

Gets or sets a reference to Project

integer

None.

ProjectTaskId

Gets or sets a reference to ProjectTask

integer

None.

IsTaskMandatoryOnTimeEntry

Gets or sets a value indicating whether task is mandatory for entry project

boolean

None.

EmployeeId

Gets or sets Resource.ResourceId

integer

None.

ItemId

Gets or sets ItemCompany.ItemId

integer

None.

State

Gets or sets State

QicsUnity.Api.Areas.V2.Models.TimesheetEntryState

None.

Quantity

Gets or sets Quantity

decimal number

None.

Type

Gets or sets Type

QicsUnity.Api.Areas.V2.Models.TimesheetEntryTypeV2

None.

Date

Gets or sets time entry Date

date

None.

StartTime

Gets or sets a time when time entry starts

time interval

None.

Description

Gets or sets Description

string

None.

LongDescription

Gets or sets LongDescription

string

None.

RejectionReason

Gets or sets RejectionReason

string

None.

CostRate

Gets or sets CostRate

decimal number

None.

SalesRate

Gets or sets SalesRate

decimal number

None.

IrregularityPercentage

Gets or sets IrregularityPercentage

decimal number

None.

IrregularityPercentageId

Gets or sets IrregularityPercentageId

integer

None.

UseCustomSalesRate

Gets or sets a value indicating whether a custom sales rate is used Represents UseCustomSalesRate field

boolean

None.

WillBeInvoiced

Gets or sets a value indicating whether entry appears on invoices. Represents TimesheetEntry.WillBeInvoiced

boolean

None.

IsBillable

Gets or sets a value indicating whether IsBillable is true

boolean

None.

AssignmentId

Gets or sets the id of assignment the entry was created based on

integer

None.

InvoiceMutationReasonId

Gets or sets InvoiceMutationReasonId

integer

None.

InvoiceAfter

Gets or sets InvoiceAfter - null if it is the same as Date

date

None.

ProjectContractId

Gets or sets ProjectContractId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EntryId": 1,
  "ProjectId": 1,
  "ProjectTaskId": 1,
  "IsTaskMandatoryOnTimeEntry": true,
  "EmployeeId": 3,
  "ItemId": 1,
  "State": 0,
  "Quantity": 4.0,
  "Type": 0,
  "Date": "2019-09-16T12:44:12.5163878+00:00",
  "StartTime": "00:00:00.1234567",
  "Description": "sample 6",
  "LongDescription": "sample 7",
  "RejectionReason": "sample 8",
  "CostRate": 1.0,
  "SalesRate": 1.0,
  "IrregularityPercentage": 1.0,
  "IrregularityPercentageId": 1,
  "UseCustomSalesRate": true,
  "WillBeInvoiced": true,
  "IsBillable": true,
  "AssignmentId": 1,
  "InvoiceMutationReasonId": 1,
  "InvoiceAfter": "2019-09-16T12:44:12.5163878+00:00",
  "ProjectContractId": 1
}

application/xml, text/xml

Sample:
<TimeExpenseEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AssignmentId>1</AssignmentId>
  <CostRate>1</CostRate>
  <Date xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-09-16T12:44:12.5163878Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </Date>
  <Description>sample 6</Description>
  <EmployeeId>3</EmployeeId>
  <EntryId>1</EntryId>
  <InvoiceAfter>2019-09-16T12:44:12.5163878+00:00</InvoiceAfter>
  <InvoiceMutationReasonId>1</InvoiceMutationReasonId>
  <IrregularityPercentage>1</IrregularityPercentage>
  <IrregularityPercentageId>1</IrregularityPercentageId>
  <IsBillable>true</IsBillable>
  <IsTaskMandatoryOnTimeEntry>true</IsTaskMandatoryOnTimeEntry>
  <ItemId>1</ItemId>
  <LongDescription>sample 7</LongDescription>
  <ProjectContractId>1</ProjectContractId>
  <ProjectId>1</ProjectId>
  <ProjectTaskId>1</ProjectTaskId>
  <Quantity>4</Quantity>
  <RejectionReason>sample 8</RejectionReason>
  <SalesRate>1</SalesRate>
  <StartTime>PT0.1234567S</StartTime>
  <State>Open</State>
  <Type>Hour</Type>
  <UseCustomSalesRate>true</UseCustomSalesRate>
  <WillBeInvoiced>true</WillBeInvoiced>
</TimeExpenseEntry>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.