Field Squared API Services

<back to all web services

PublicContact

The following routes are available for this service:
GET/{Workspace}/API/Contact/Schema
GET, PUT, POST, DELETE/{Workspace}/API/Contact/{Id}
GET, PUT, POST, DELETE/{Workspace}/API/Contact
PublicContact Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
WorkspacepathstringNo
ContactbodyContactNo
ContactsbodyList<Contact>No
Contact Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
TimeZoneformstringNo
VersionIdformstringNo
BasedOnformstringNo
ExternalIdformstringNo
ContactNameformstringNo
CompanyformstringNo
MobilePhoneformstringNo
WorkPhoneformstringNo
HomePhoneformstringNo
EmailformstringNo
SMSformboolNo
AddressformAddressNo
EnabledformboolNo
POIformboolNo
EmailSiteDrivingformboolNo
ServiceAddressesformList<Address>No
DocumentsformList<DomainItem>No
DataformDictionary<string, string>No
OwnerformClassedItemNo
TasksformList<string>No
AssetsformList<string>No
ContactsformList<string>No
EventsformList<EventItem>No
TeamsformList<string>No
CreatedformstringNo
LastUpdatedformstringNo
CreatedByformstringNo
ActiveLaborTypesformDictionary<string, Object>No
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
UnitformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
ContactTitleformstringNo
ContactNameformstringNo
ContactPhoneformstringNo
ContactEmailformstringNo
LocationformLocationNo
SiteNameformstringNo
GeocodeFailedformboolNo
CountryformstringNo
Location Parameters:
NameParameterData TypeRequiredDescription
yformdoubleNo
xformdoubleNo
DomainItem Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
LastUpdatedformstringNo
ClassedItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
ClassformstringNo
VersionIdformstringNo
AncestorsformList<string>No
TypeformstringNo
EventItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
DateformstringNo
LocationformLocationNo
BarcodeformstringNo
DetailsformstringNo
TypeformstringNo
IsScanformboolNo
UserformstringNo
SelectedByformstringNo
StatusformstringNo
StatusTypeformstringNo
DateCreatedformstringNo
AutomaticformboolNo

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

{"Id":"String","Workspace":"String","Contact":{"ExternalId":"String","ContactName":"String","Company":"String","MobilePhone":"String","WorkPhone":"String","HomePhone":"String","Email":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","Team":"String","Tasks":["String"],"Enabled":false,"LastUpdated":"String","Created":"String","Data":{"String":{}}},"Contacts":[{"ExternalId":"String","ContactName":"String","Company":"String","MobilePhone":"String","WorkPhone":"String","HomePhone":"String","Email":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","Team":"String","Tasks":["String"],"Enabled":false,"LastUpdated":"String","Created":"String","Data":{"String":{}}}]}