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}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.PricingEngine

Namespace Global

    Namespace Field2Office.API.Model.PricingEngine

        Public Partial Class LaborItemType
            Public Sub New()
                SkillTags = New List(Of String)
                TimeStartTaskStatuses = New List(Of String)
                TimeEndTaskStatuses = New List(Of String)
                Data = New Dictionary(Of String, String)
                TaskTypes = New List(Of String)
                LimitDays = New List(Of String)
            End Sub

            Public Overridable Property ObjectId As String
            Public Overridable Property Workspace As String
            Public Overridable Property ExternalId As String
            Public Overridable Property ItemType As String
            Public Overridable Property Desc As String
            Public Overridable Property UOM As String
            Public Overridable Property DefaultPrice As Nullable(Of Double)
            Public Overridable Property AutoGenerate As Nullable(Of Boolean)
            Public Overridable Property SkillTags As List(Of String)
            Public Overridable Property TimeStartTaskStatuses As List(Of String)
            Public Overridable Property TimeEndTaskStatuses As List(Of String)
            Public Overridable Property Template As String
            Public Overridable Property Data As Dictionary(Of String, String)
            Public Overridable Property Enabled As Nullable(Of Boolean)
            Public Overridable Property RoundTo As Nullable(Of Integer)
            Public Overridable Property RoundOptions As Nullable(Of Integer)
            Public Overridable Property DurationRange As String
            Public Overridable Property TaskTypes As List(Of String)
            Public Overridable Property LimitDays As List(Of String)
            Public Overridable Property IncludeInactive As Boolean
        End Class
    End Namespace
End Namespace

VB.NET LaborItemType DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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}