Field Squared API Services

<back to all web services

Asset

Contains the data for an asset within the system.

The following routes are available for this service:
GET,POST,PUT,DELETE/{Workspace}/Asset/{ObjectId}
GET/{Workspace}/Asset
Asset Parameters:
NameParameterData TypeRequiredDescription
WorkspacepathstringNo
TimeZonebodystringNo
AssignedWorkspacebodystringNo
ObjectIdpathstringNo
VersionIdbodystringNo
BasedOnbodystringNo
ExternalIdbodystringNo
CreatedbodystringNo
LastUpdatedbodystringNo
NamebodystringNo
SchedulesbodyList<Schedule>No
DocumentsbodyList<DomainItem>No
TasksbodyList<DomainItem>No
TaskSeriesbodyList<string>No
TaskSeriesTemplatesbodyList<string>No
UsersbodyList<DomainItem>No
TypebodystringNo
SymbolbodystringNo
DatabodyDictionary<string, string>No
GeometrybodyGeometryNo
MaintenanceHistorybodyList<MaintenanceRecord>No
ParentbodystringNo
AncestorsbodyList<string>No
LocationHistorybodyList<LocationHistory>No
OwnerbodyClassedItemNo
IsParentbodyboolNo
AssetsbodyList<string>No
ContactsbodyList<string>No
GeometryStringbodystringNo
SourceProjectionbodystringNo
EventsbodyList<EventItem>No
AnnobodyAnnoNo
TeamsbodyList<string>No
AddressbodyAddressBasicNo
CreatedBybodystringNo
InventoryItemsbodyList<string>No
ActiveLaborTypesbodyDictionary<string, Object>No
LevelsbodyintNo
AllAssestsbodyintNo
BarcodebodystringNo
CustomDataFieldsbodyList<CustomDataField>No
Schedule Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
StartformstringNo
EndformstringNo
TimeZoneformstringNo
UsersformList<string>No
TeamsformList<string>No
DataformDictionary<string, Object>No
DomainItem Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
LastUpdatedformstringNo
Geometry Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
CoordinatesformList<Location>No
Location Parameters:
NameParameterData TypeRequiredDescription
yformdoubleNo
xformdoubleNo
MaintenanceRecord Parameters:
NameParameterData TypeRequiredDescription
DateTimeformstringNo
NotesformstringNo
LocationHistory Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
LocationformLocationNo
BarcodeformstringNo
NotesformstringNo
IsScanformboolNo
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
Anno Parameters:
NameParameterData TypeRequiredDescription
XformdoubleNo
YformdoubleNo
RformdoubleNo
SformdoubleNo
TformstringNo
AddressBasic Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
UnitformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
LocationformLocationNo
CustomDataField Parameters:
NameParameterData TypeRequiredDescription
BindingformstringNo
LabelformstringNo
ValueformObjectNo
DataTypeformstringNo
IsReadOnlyformboolNo
IsHiddenformboolNo
ValuesformstringNo

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

<Asset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model">
  <ActiveLaborTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </ActiveLaborTypes>
  <Address>
    <City>String</City>
    <Country>String</Country>
    <Location>
      <x>0</x>
      <y>0</y>
    </Location>
    <State>String</State>
    <Street>String</Street>
    <Unit>String</Unit>
    <Zip>String</Zip>
  </Address>
  <AllAssests>0</AllAssests>
  <Ancestors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Ancestors>
  <Anno>
    <R>0</R>
    <S>0</S>
    <T>String</T>
    <X>0</X>
    <Y>0</Y>
  </Anno>
  <Assets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Assets>
  <AssignedWorkspace>String</AssignedWorkspace>
  <Barcode>String</Barcode>
  <BasedOn>String</BasedOn>
  <Contacts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Contacts>
  <Created>String</Created>
  <CreatedBy>String</CreatedBy>
  <CustomDataFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.Core.Model.Task">
    <d2p1:CustomDataField>
      <d2p1:Binding>String</d2p1:Binding>
      <d2p1:DataType>String</d2p1:DataType>
      <d2p1:IsHidden>false</d2p1:IsHidden>
      <d2p1:IsReadOnly>false</d2p1:IsReadOnly>
      <d2p1:Label>String</d2p1:Label>
      <d2p1:Value />
      <d2p1:Values>String</d2p1:Values>
    </d2p1:CustomDataField>
  </CustomDataFields>
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Data>
  <Documents>
    <DomainItem>
      <LastUpdated>String</LastUpdated>
      <ObjectId>String</ObjectId>
      <VersionId>String</VersionId>
      <Workspace>String</Workspace>
    </DomainItem>
  </Documents>
  <Events>
    <EventItem>
      <Automatic>false</Automatic>
      <Barcode>String</Barcode>
      <Date>String</Date>
      <DateCreated>String</DateCreated>
      <Details>String</Details>
      <IsScan>false</IsScan>
      <Location>
        <x>0</x>
        <y>0</y>
      </Location>
      <ObjectId>String</ObjectId>
      <SelectedBy>String</SelectedBy>
      <Status>String</Status>
      <StatusType>String</StatusType>
      <Type>String</Type>
      <User>String</User>
    </EventItem>
  </Events>
  <ExternalId>String</ExternalId>
  <Geometry>
    <Coordinates>
      <Location>
        <x>0</x>
        <y>0</y>
      </Location>
    </Coordinates>
    <Type>String</Type>
  </Geometry>
  <GeometryString>String</GeometryString>
  <InventoryItems xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </InventoryItems>
  <IsParent>false</IsParent>
  <LastUpdated>String</LastUpdated>
  <Levels>0</Levels>
  <LocationHistory>
    <LocationHistory>
      <Barcode>String</Barcode>
      <Date>String</Date>
      <IsScan>false</IsScan>
      <Location>
        <x>0</x>
        <y>0</y>
      </Location>
      <Notes>String</Notes>
    </LocationHistory>
  </LocationHistory>
  <MaintenanceHistory>
    <MaintenanceRecord>
      <DateTime>String</DateTime>
      <Notes>String</Notes>
    </MaintenanceRecord>
  </MaintenanceHistory>
  <Name>String</Name>
  <ObjectId>String</ObjectId>
  <Owner>
    <Ancestors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Ancestors>
    <Class>String</Class>
    <ObjectId>String</ObjectId>
    <Type>String</Type>
    <VersionId>String</VersionId>
  </Owner>
  <Parent>String</Parent>
  <Schedules xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Schedules">
    <d2p1:Schedule>
      <d2p1:BasedOn>String</d2p1:BasedOn>
      <d2p1:Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringanyType>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value />
        </d4p1:KeyValueOfstringanyType>
      </d2p1:Data>
      <d2p1:End>String</d2p1:End>
      <d2p1:ObjectId>String</d2p1:ObjectId>
      <d2p1:Start>String</d2p1:Start>
      <d2p1:Teams xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:Teams>
      <d2p1:TimeZone>String</d2p1:TimeZone>
      <d2p1:Users xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:Users>
      <d2p1:VersionId>String</d2p1:VersionId>
      <d2p1:Workspace>String</d2p1:Workspace>
    </d2p1:Schedule>
  </Schedules>
  <SourceProjection>String</SourceProjection>
  <Symbol>String</Symbol>
  <TaskSeries xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </TaskSeries>
  <TaskSeriesTemplates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </TaskSeriesTemplates>
  <Tasks>
    <DomainItem>
      <LastUpdated>String</LastUpdated>
      <ObjectId>String</ObjectId>
      <VersionId>String</VersionId>
      <Workspace>String</Workspace>
    </DomainItem>
  </Tasks>
  <Teams xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Teams>
  <TimeZone>String</TimeZone>
  <Type>String</Type>
  <Users>
    <DomainItem>
      <LastUpdated>String</LastUpdated>
      <ObjectId>String</ObjectId>
      <VersionId>String</VersionId>
      <Workspace>String</Workspace>
    </DomainItem>
  </Users>
  <VersionId>String</VersionId>
  <Workspace>String</Workspace>
</Asset>