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}
LaborItemType Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathstringNo
WorkspacepathstringNo
ExternalIdbodystringNo
ItemTypebodystringNo
DescbodystringNo
UOMbodystringNo
DefaultPricebodydouble?No
AutoGeneratebodybool?No
SkillTagsbodyList<string>No
TimeStartTaskStatusesbodyList<string>No
TimeEndTaskStatusesbodyList<string>No
TemplatebodystringNo
DatabodyDictionary<string, string>No
Enabledbodybool?No
RoundTobodyint?No
RoundOptionsbodyint?No
DurationRangebodystringNo
TaskTypesbodyList<string>No
LimitDaysbodyList<string>No
IncludeInactivebodyboolNo

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
}