Field Squared API Services

<back to all web services

LaborItem

The following routes are available for this service:
GET,PUT,POST,DELETE/{Workspace}/LaborItem
GET,PUT,POST,DELETE/{Workspace}/LaborItem/{ObjectId}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.PricingEngine;

namespace Field2Office.API.Model.PricingEngine
{
    public partial class LaborItem
    {
        public virtual string ObjectId { get; set; }
        public virtual string Workspace { get; set; }
        public virtual string ItemTypeId { get; set; }
        public virtual double? Price { get; set; }
        public virtual string ItemTypeName { get; set; }
        public virtual double? TimeWorked { get; set; }
        public virtual double? TimeCharged { get; set; }
        public virtual string StartTime { get; set; }
        public virtual string EndTime { get; set; }
        public virtual string UserId { get; set; }
        public virtual double? Rate { get; set; }
        public virtual string OwningTaskId { get; set; }
        public virtual string StartStatus { get; set; }
        public virtual string EndStatus { get; set; }
        public virtual string StartEventId { get; set; }
        public virtual string EndEventId { get; set; }
        public virtual double? Qty { get; set; }
    }

}

C# LaborItem DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ObjectId: String,
	Workspace: String,
	ItemTypeId: String,
	Price: 0,
	ItemTypeName: String,
	TimeWorked: 0,
	TimeCharged: 0,
	StartTime: String,
	EndTime: String,
	UserId: String,
	Rate: 0,
	OwningTaskId: String,
	StartStatus: String,
	EndStatus: String,
	StartEventId: String,
	EndEventId: String,
	Qty: 0
}