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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<PublicContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.PublicApi.Contacts">
  <Contact>
    <City>String</City>
    <Company>String</Company>
    <ContactName>String</ContactName>
    <Country>String</Country>
    <Created>String</Created>
    <Data xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringanyType>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value />
      </d3p1:KeyValueOfstringanyType>
    </Data>
    <Email>String</Email>
    <Enabled>false</Enabled>
    <ExternalId>String</ExternalId>
    <HomePhone>String</HomePhone>
    <LastUpdated>String</LastUpdated>
    <Lat>0</Lat>
    <Lon>0</Lon>
    <MobilePhone>String</MobilePhone>
    <State>String</State>
    <StreetAddress>String</StreetAddress>
    <Tasks xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Tasks>
    <Team>String</Team>
    <Unit>String</Unit>
    <WorkPhone>String</WorkPhone>
    <Zip>String</Zip>
  </Contact>
  <Contacts>
    <Contact>
      <City>String</City>
      <Company>String</Company>
      <ContactName>String</ContactName>
      <Country>String</Country>
      <Created>String</Created>
      <Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringanyType>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value />
        </d4p1:KeyValueOfstringanyType>
      </Data>
      <Email>String</Email>
      <Enabled>false</Enabled>
      <ExternalId>String</ExternalId>
      <HomePhone>String</HomePhone>
      <LastUpdated>String</LastUpdated>
      <Lat>0</Lat>
      <Lon>0</Lon>
      <MobilePhone>String</MobilePhone>
      <State>String</State>
      <StreetAddress>String</StreetAddress>
      <Tasks xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Tasks>
      <Team>String</Team>
      <Unit>String</Unit>
      <WorkPhone>String</WorkPhone>
      <Zip>String</Zip>
    </Contact>
  </Contacts>
  <Id>String</Id>
  <Workspace>String</Workspace>
</PublicContact>