Field Squared API Services

<back to all web services

PublicTask

The following routes are available for this service:
GET/{Workspace}/API/Task/Schema
GET, PUT, POST, DELETE/{Workspace}/API/Task/{Id}
GET, PUT, POST, DELETE/{Workspace}/API/Task
GET/{Workspace}/API/Task/Schema/{TaskTemplate}
PublicTask Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
WorkspacepathstringNo
TaskTemplatepathstringNo
TaskbodyTaskNo
TasksbodyList<Task>No
Task Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
AssignedWorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
ExternalIdformstringNo
CreatedformstringNo
LastUpdatedformstringNo
LastUpdatedLocalformstringNo
RankformdecimalNo
NameformstringNo
DescriptionformstringNo
AddressformAddressNo
SchedulesformList<Schedule>No
StatusformstringNo
BlockedReasonformstringNo
TaskTypeformstringNo
DueDateformstringNo
DesiredCompletionDateformstringNo
DesiredTimeWindowformTimeWindowNo
Priorityformint?No
PercentCompleteformdoubleNo
UsersformList<string>No
UsersExtendedformList<DomainItem>No
TeamsformList<DomainItem>No
DocumentsformList<string>No
DocsformList<DomainItem>No
DocSummariesformList<Document>No
DataformDictionary<string, Object>No
ContactsformList<string>No
StatusLocationformLocationNo
AssetsformList<string>No
TasksformList<string>No
OwnerformstringNo
EventsformList<EventItem>No
UserStatusesformDictionary<string, List<EventItem>>No
CreatedByformstringNo
TimeZoneformstringNo
SeriesIdformstringNo
JobTimerRunTimeformintNo
JobTimerPauseTimeformintNo
JobTimerTransitTimeformintNo
CurrentJobTimerStatusformstringNo
CurrentJobTimerTimeformstringNo
InventoryItemsformList<string>No
LaborItemsformList<string>No
RequiredAssetsformList<RequiredAsset>No
RequiredInventoryTypesformList<RequiredInventoryType>No
RequiredUsersformList<RequiredUser>No
LockedformboolNo
ReadyformboolNo
TaskTemplateformTaskTemplateNo
CustomDataFieldsformList<CustomDataField>No
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
UnitformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
ContactTitleformstringNo
ContactNameformstringNo
ContactPhoneformstringNo
ContactEmailformstringNo
LocationformLocationNo
SiteNameformstringNo
GeocodeFailedformboolNo
CountryformstringNo
Location Parameters:
NameParameterData TypeRequiredDescription
yformdoubleNo
xformdoubleNo
Schedule Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
StartformstringNo
EndformstringNo
TimeZoneformstringNo
UsersformList<string>No
TeamsformList<string>No
DataformDictionary<string, Object>No
TimeWindow Parameters:
NameParameterData TypeRequiredDescription
StartformintNo
EndformintNo
DomainItem Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
LastUpdatedformstringNo
Document Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
AssignedWorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
CreatedformstringNo
ExternalIdformstringNo
LastUpdatedformstringNo
TypeformstringNo
NameformstringNo
TitleformstringNo
DataformDictionary<string, Object>No
OwnerformClassedItemNo
SecondaryOwnersformList<ClassedItem>No
LocationformLocationNo
DateformstringNo
CreatedByformstringNo
PercentCompleteformdoubleNo
PercentTotalformintNo
PercentDoneformintNo
RangeExceptionsformList<RangeExceptionItem>No
SubmittedformboolNo
SchemaformstringNo
OwnerDataformDocumentOwnerDataNo
ClassedItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
ClassformstringNo
VersionIdformstringNo
AncestorsformList<string>No
TypeformstringNo
RangeExceptionItem Parameters:
NameParameterData TypeRequiredDescription
BindingformstringNo
MessageformstringNo
TypeformstringNo
ClassNameformstringNo
DocumentOwnerData Parameters:
NameParameterData TypeRequiredDescription
OwnerTypeformstringNo
TaskDataformDocumentOwnerDataTaskNo
AssetDataformDocumentOwnerDataAssetNo
DocumentOwnerDataTask Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
NameformstringNo
StatusformstringNo
TaskTypeformstringNo
LastUpdatedformDateTimeNo
CreatedformDateTimeNo
Priorityformint?No
RankformdecimalNo
FirstTeamformTeamNo
AddressformAddressNo
CustomDataFieldsformList<CustomDataField>No
Team Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
TimeZoneformstringNo
ObjectIdformstringNo
ExternalIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
NameformstringNo
EnabledformboolNo
MembersformList<DomainItem>No
LeadformDomainItemNo
ParentformDomainItemNo
AddressformAddressNo
DataformDictionary<string, string>No
TeamsformList<string>No
EventsformList<EventItem>No
CreatedByformstringNo
ActiveLaborTypesformDictionary<string, Object>No
EventItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
DateformstringNo
LocationformLocationNo
BarcodeformstringNo
DetailsformstringNo
TypeformstringNo
IsScanformboolNo
UserformstringNo
SelectedByformstringNo
StatusformstringNo
StatusTypeformstringNo
DateCreatedformstringNo
AutomaticformboolNo
Address Parameters:
NameParameterData TypeRequiredDescription
SiteNameformstringNo
ContactTitleformstringNo
ContactNameformstringNo
ContactPhoneformstringNo
ContactEmailformstringNo
AddressBase Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
LocationformLocationNo
NameformstringNo
NameSingleLineformstringNo
NameSingleLine5DigitZipformstringNo
HasValidLocationformboolNo
GeocodeFailedformboolNo
GeocodeResultCodeformstringNo
CountryformstringNo
Location Parameters:
NameParameterData TypeRequiredDescription
LatitudeformdoubleNo
LongitudeformdoubleNo
HasValidLocationformboolNo
CustomDataField Parameters:
NameParameterData TypeRequiredDescription
BindingformstringNo
LabelformstringNo
ValueformObjectNo
DataTypeformstringNo
IsReadOnlyformboolNo
IsHiddenformboolNo
ValuesformstringNo
DocumentOwnerDataAsset Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
NameformstringNo
AssetTypeformstringNo
LastUpdatedformDateTimeNo
CreatedformDateTimeNo
AddressformAddressBasicNo
CustomDataFieldsformList<CustomDataField>No
RequiredAsset Parameters:
NameParameterData TypeRequiredDescription
NumberformintNo
TypeformstringNo
RequiredInventoryType Parameters:
NameParameterData TypeRequiredDescription
NumberformintNo
TypeformstringNo
NameformstringNo
IsSerializedformboolNo
DescriptionformstringNo
RequiredUser Parameters:
NameParameterData TypeRequiredDescription
NumberformintNo
SkillTagsformList<string>No
TaskTemplate Parameters:
NameParameterData TypeRequiredDescription
CustomFieldsformList<CustomField>No
StatusesformList<TaskStatusDef>No
TaskListDetailsformstringNo
AutoAssignStatusformstringNo
AutoUnassignStatusformstringNo
AutoScheduleStatusformstringNo
AutoUnscheduleStatusformstringNo
AutoUpdateStartStatusformstringNo
AutoUpdateEndStatusformstringNo
ArrivalStatusformstringNo
DepartureStatusformstringNo
ConfirmArrivalformboolNo
ConfirmDepartureformboolNo
ManualArrivalAllowedformboolNo
ManualDepartureAllowedformboolNo
HideDisabledStatusesformboolNo
GeofenceRadiusformintNo
CustomField Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
LabelformstringNo
IsActiveformboolNo
IsReadOnlyformboolNo
IsHiddenformboolNo
IsMandatoryformboolNo
DisplayOnMapformboolNo
CustomFieldDataTypeformCustomFieldDataTypeNo
ValuesformstringNo
PromptformstringNo
DefaultformstringNo
DefaultAutoUpdateformboolNo
RequiredIfformstringNo
HiddenformList<string>No
ReadOnlyformList<string>No
ControlArgsformDictionary<string, Object>No
IndexSlotformstringNo
IndexformstringNo
CustomFieldDataType Enum:
Text
Number
Decimal
Money
PhoneNumber
Ssn
List
Date
File
Barcode
GPS
Photo
Spacer
Separator
AutoNumber
TextArea
Contact
User
Asset
Checkbox
CoreAssetList
CoreTaskList
CoreParentTask
CoreContactList
ComboBox
DateTime
Time
Location
CoreLocation
Label
EventLog
Address
Catalog
CoreTeamList
Segment
CoreTimeSeries
TimeSeries
Command
AutoNumberNumeric
CatalogList
CatalogComboBox
DateRange
DocumentGrid
ReportLink
Hyperlink
PercentComplete
Chart
Range
ExternalId
AssetCatalog
Inventory
CoreTaskLaborItemTypes
CoreTaskLaborItems
ObjectList
CoreTimeZone
TaskStatusDef Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ColorformstringNo
CodeformstringNo
TransitionFromformstringNo
TransitionMessageformstringNo
TransitionCustomFieldsformList<string>No
HiddenIfformstringNo
IsStartformboolNo
IsEndformboolNo
IsBlockedformboolNo
StatusTypeformstringNo
ProgressTypeformstringNo
AutoCreateDocumentsformList<string>No
LockTaskformboolNo
SubmittedFormsformList<BindingDescriptor>No
BindingDescriptor Parameters:
NameParameterData TypeRequiredDescription
BindingformstringNo
RequiredformboolNo

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}/API/Task/{Id} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":"String","Workspace":"String","TaskTemplate":"String","Task":{"Name":"String","Description":"String","ExternalId":"String","TaskType":"String","Priority":0,"DueDate":"String","DesiredCompletionDate":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","ScheduleStart":"String","ScheduleEnd":"String","Status":"String","User":"String","Team":"String","Asset":"String","Contact":"String","TimeZone":"String","LastUpdated":"String","Created":"String","Data":{"String":{}}},"Tasks":[{"Name":"String","Description":"String","ExternalId":"String","TaskType":"String","Priority":0,"DueDate":"String","DesiredCompletionDate":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","ScheduleStart":"String","ScheduleEnd":"String","Status":"String","User":"String","Team":"String","Asset":"String","Contact":"String","TimeZone":"String","LastUpdated":"String","Created":"String","Data":{"String":{}}}]}