Field Squared API Services

<back to all web services

PublicAsset

The following routes are available for this service:
GET/{Workspace}/API/Asset/Schema
GET, PUT, POST, DELETE/{Workspace}/API/Asset/{Id}
GET, PUT, POST, DELETE/{Workspace}/API/Asset
GET/{Workspace}/API/Asset/Schema/{AssetType}
PublicAsset Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
WorkspacepathstringNo
AssetTypepathstringNo
AssetbodyAssetNo
AssetsbodyList<Asset>No
Asset Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
TimeZoneformstringNo
AssignedWorkspaceformstringNo
ObjectIdformstringNo
VersionIdformstringNo
BasedOnformstringNo
ExternalIdformstringNo
CreatedformstringNo
LastUpdatedformstringNo
NameformstringNo
SchedulesformList<Schedule>No
DocumentsformList<DomainItem>No
TasksformList<DomainItem>No
TaskSeriesformList<string>No
TaskSeriesTemplatesformList<string>No
UsersformList<DomainItem>No
TypeformstringNo
SymbolformstringNo
DataformDictionary<string, string>No
GeometryformGeometryNo
MaintenanceHistoryformList<MaintenanceRecord>No
ParentformstringNo
AncestorsformList<string>No
LocationHistoryformList<LocationHistory>No
OwnerformClassedItemNo
IsParentformboolNo
AssetsformList<string>No
ContactsformList<string>No
GeometryStringformstringNo
SourceProjectionformstringNo
EventsformList<EventItem>No
AnnoformAnnoNo
TeamsformList<string>No
AddressformAddressBasicNo
CreatedByformstringNo
InventoryItemsformList<string>No
ActiveLaborTypesformDictionary<string, Object>No
LevelsformintNo
AllAssestsformintNo
BarcodeformstringNo
CustomDataFieldsformList<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 .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Workspace}/API/Asset/{Id} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: String,
	Workspace: String,
	AssetType: String,
	Asset: 
	{
		Name: String,
		Type: String,
		ExternalId: String,
		Parent: String,
		Lat: 0,
		Lon: 0,
		StreetAddress: String,
		Unit: String,
		City: String,
		State: String,
		Zip: String,
		Country: String,
		Data: 
		{
			String: {}
		},
		LastUpdated: String,
		Created: String,
		Tasks: 
		[
			String
		],
		Team: String
	},
	Assets: 
	[
		{
			Name: String,
			Type: String,
			ExternalId: String,
			Parent: String,
			Lat: 0,
			Lon: 0,
			StreetAddress: String,
			Unit: String,
			City: String,
			State: String,
			Zip: String,
			Country: String,
			Data: 
			{
				String: {}
			},
			LastUpdated: String,
			Created: String,
			Tasks: 
			[
				String
			],
			Team: String
		}
	]
}