| GET,PUT,POST | /{Workspace}/LaborItemType | ||
|---|---|---|---|
| GET,PUT,POST | /{Workspace}/LaborItemType/{ObjectId} |
import Foundation
import ServiceStack
public class LaborItemType : Codable
{
public var objectId:String
public var workspace:String
public var externalId:String
public var itemType:String
public var desc:String
public var uom:String
public var defaultPrice:Double?
public var autoGenerate:Bool?
public var skillTags:[String] = []
public var timeStartTaskStatuses:[String] = []
public var timeEndTaskStatuses:[String] = []
public var template:String
public var data:[String:String] = [:]
public var enabled:Bool?
public var roundTo:Int?
public var roundOptions:Int?
public var durationRange:String
public var taskTypes:[String] = []
public var limitDays:[String] = []
public var includeInactive:Bool
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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}