Field Squared API Services

<back to all web services

LaborItemType

The following routes are available for this service:
GET,PUT,POST/{Workspace}/LaborItemType
GET,PUT,POST/{Workspace}/LaborItemType/{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 LaborItemType
    {
        public LaborItemType()
        {
            SkillTags = new List<string>{};
            TimeStartTaskStatuses = new List<string>{};
            TimeEndTaskStatuses = new List<string>{};
            Data = new Dictionary<string, string>{};
            TaskTypes = new List<string>{};
            LimitDays = new List<string>{};
        }

        public virtual string ObjectId { get; set; }
        public virtual string Workspace { get; set; }
        public virtual string ExternalId { get; set; }
        public virtual string ItemType { get; set; }
        public virtual string Desc { get; set; }
        public virtual string UOM { get; set; }
        public virtual double? DefaultPrice { get; set; }
        public virtual bool? AutoGenerate { get; set; }
        public virtual List<string> SkillTags { get; set; }
        public virtual List<string> TimeStartTaskStatuses { get; set; }
        public virtual List<string> TimeEndTaskStatuses { get; set; }
        public virtual string Template { get; set; }
        public virtual Dictionary<string, string> Data { get; set; }
        public virtual bool? Enabled { get; set; }
        public virtual int? RoundTo { get; set; }
        public virtual int? RoundOptions { get; set; }
        public virtual string DurationRange { get; set; }
        public virtual List<string> TaskTypes { get; set; }
        public virtual List<string> LimitDays { get; set; }
        public virtual bool IncludeInactive { get; set; }
    }

}

C# LaborItemType 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}/LaborItemType HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ObjectId: String,
	Workspace: String,
	ExternalId: String,
	ItemType: String,
	Desc: String,
	UOM: String,
	DefaultPrice: 0,
	AutoGenerate: False,
	SkillTags: 
	[
		String
	],
	TimeStartTaskStatuses: 
	[
		String
	],
	TimeEndTaskStatuses: 
	[
		String
	],
	Template: String,
	Data: 
	{
		String: String
	},
	Enabled: False,
	RoundTo: 0,
	RoundOptions: 0,
	DurationRange: String,
	TaskTypes: 
	[
		String
	],
	LimitDays: 
	[
		String
	],
	IncludeInactive: False
}