Field Squared API Services

<back to all web services

PublicUser

The following routes are available for this service:
GET/{Workspace}/API/User/Schema
GET, PUT, POST, DELETE/{Workspace}/API/User/{Id}
GET, PUT, POST, DELETE/{Workspace}/API/User
PublicUser Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
WorkspacepathstringNo
UserbodyUserNo
UsersbodyList<User>No
User Parameters:
NameParameterData TypeRequiredDescription
WorkspaceformstringNo
TimeZoneformstringNo
ObjectIdformstringNo
VersionIdformstringNo
CreatedformstringNo
LastUpdatedformstringNo
BasedOnformstringNo
ExternalIdformstringNo
NameformstringNo
InitialsformstringNo
PhoneformstringNo
EmailformstringNo
PasswordformstringNo
RequestUserformstringNo
LocationformLocationNo
UserTypeformstringNo
ProposedRouteformList<Location>No
ActualRouteformList<Location>No
ImageformstringNo
UserStatusformUserStatusNo
RecordStatusformstringNo
DocumentsformList<string>No
SubscribeToEmailsformboolNo
AddressformAddressNo
SkillTagsformList<string>No
EnabledformboolNo
UIPrefTaskColumnsOffformList<string>No
UIPrefTaskColumnsformList<UIColumnPref>No
DataformDictionary<string, string>No
TeamsformList<string>No
EventsformList<EventItem>No
ColorformstringNo
VehicleAssetformstringNo
ExternalAuthformboolNo
CreatedByformstringNo
ServiceAccountformboolNo
AssetsformList<string>No
TfaRequiredformboolNo
TfaPreferenceformstringNo
WorkWeekformList<WorkDay>No
CustomSchedulesEnabledformboolNo
CustomSchedulesformList<CustomSchedule>No
OverrideSsoformboolNo
Location Parameters:
NameParameterData TypeRequiredDescription
yformdoubleNo
xformdoubleNo
UserStatus Enum:
NotStarted
Driving
InProgress
Complete
Blocked
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
UnitformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
ContactTitleformstringNo
ContactNameformstringNo
ContactPhoneformstringNo
ContactEmailformstringNo
LocationformLocationNo
SiteNameformstringNo
GeocodeFailedformboolNo
CountryformstringNo
UIColumnPref Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
WidthformdoubleNo
EventItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
DateformstringNo
LocationformLocationNo
BarcodeformstringNo
DetailsformstringNo
TypeformstringNo
IsScanformboolNo
UserformstringNo
SelectedByformstringNo
StatusformstringNo
StatusTypeformstringNo
DateCreatedformstringNo
AutomaticformboolNo
WorkDay Parameters:
NameParameterData TypeRequiredDescription
DayOfWeekformintNo
StartformintNo
EndformintNo
LunchformintNo
CustomSchedule Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
StartformintNo
EndformintNo
TypeformstringNo

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

{
	Id: String,
	Workspace: String,
	User: 
	{
		ExternalId: String,
		Name: String,
		Initials: String,
		Phone: String,
		Email: String,
		UserType: String,
		Image: String,
		Lat: 0,
		Lon: 0,
		StreetAddress: String,
		Unit: String,
		City: String,
		State: String,
		Zip: String,
		Country: String,
		SkillTags: 
		[
			String
		],
		Enabled: False,
		Data: 
		{
			String: {}
		},
		Teams: 
		[
			String
		],
		LastUpdated: String,
		Created: String
	},
	Users: 
	[
		{
			ExternalId: String,
			Name: String,
			Initials: String,
			Phone: String,
			Email: String,
			UserType: String,
			Image: String,
			Lat: 0,
			Lon: 0,
			StreetAddress: String,
			Unit: String,
			City: String,
			State: String,
			Zip: String,
			Country: String,
			SkillTags: 
			[
				String
			],
			Enabled: False,
			Data: 
			{
				String: {}
			},
			Teams: 
			[
				String
			],
			LastUpdated: String,
			Created: String
		}
	]
}