| GET,PUT,POST,DELETE | /{Workspace}/LaborItem | ||
|---|---|---|---|
| GET,PUT,POST,DELETE | /{Workspace}/LaborItem/{ObjectId} |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectId | path | string | No | |
| Workspace | path | string | No | |
| ItemTypeId | body | string | No | |
| Price | body | double? | No | |
| ItemTypeName | body | string | No | |
| TimeWorked | body | double? | No | |
| TimeCharged | body | double? | No | |
| StartTime | body | string | No | |
| EndTime | body | string | No | |
| UserId | body | string | No | |
| Rate | body | double? | No | |
| OwningTaskId | body | string | No | |
| StartStatus | body | string | No | |
| EndStatus | body | string | No | |
| StartEventId | body | string | No | |
| EndEventId | body | string | No | |
| Qty | body | double? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/LaborItem HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<LaborItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.PricingEngine">
<EndEventId>String</EndEventId>
<EndStatus>String</EndStatus>
<EndTime>String</EndTime>
<ItemTypeId>String</ItemTypeId>
<ItemTypeName>String</ItemTypeName>
<ObjectId>String</ObjectId>
<OwningTaskId>String</OwningTaskId>
<Price>0</Price>
<Qty>0</Qty>
<Rate>0</Rate>
<StartEventId>String</StartEventId>
<StartStatus>String</StartStatus>
<StartTime>String</StartTime>
<TimeCharged>0</TimeCharged>
<TimeWorked>0</TimeWorked>
<UserId>String</UserId>
<Workspace>String</Workspace>
</LaborItem>