Field Squared API Services

<back to all web services

User

Represents a DTO for a user in a workspace. Calls without an ObjectId will retrieve an array of all user objects for the workspace.

The following routes are available for this service:
GET,POST,PUT,DELETE/{Workspace}/User/{ObjectId}
GET/{Workspace}/User
User Parameters:
NameParameterData TypeRequiredDescription
WorkspacepathstringNo
TimeZonebodystringNo
ObjectIdpathstringNo
VersionIdbodystringNo
CreatedbodystringNo
LastUpdatedbodystringNo
BasedOnbodystringNo
ExternalIdbodystringNo
NamebodystringNo
InitialsbodystringNo
PhonebodystringNo
EmailbodystringNo
PasswordbodystringNo
RequestUserbodystringNo
LocationbodyLocationNo
UserTypebodystringNo
ProposedRoutebodyList<Location>No
ActualRoutebodyList<Location>No
ImagebodystringNo
UserStatusbodyUserStatusNo
RecordStatusbodystringNo
DocumentsbodyList<string>No
SubscribeToEmailsbodyboolNo
AddressbodyAddressNo
SkillTagsbodyList<string>No
EnabledbodyboolNo
UIPrefTaskColumnsOffbodyList<string>No
UIPrefTaskColumnsbodyList<UIColumnPref>No
DatabodyDictionary<string, string>No
TeamsbodyList<string>No
EventsbodyList<EventItem>No
ColorbodystringNo
VehicleAssetbodystringNo
ExternalAuthbodyboolNo
CreatedBybodystringNo
ServiceAccountbodyboolNo
AssetsbodyList<string>No
TfaRequiredbodyboolNo
TfaPreferencebodystringNo
WorkWeekbodyList<WorkDay>No
CustomSchedulesEnabledbodyboolNo
CustomSchedulesbodyList<CustomSchedule>No
OverrideSsobodyboolNo
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}/User/{ObjectId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Workspace: String,
	TimeZone: String,
	ObjectId: String,
	VersionId: String,
	Created: String,
	LastUpdated: String,
	BasedOn: String,
	ExternalId: String,
	Name: String,
	Initials: String,
	Phone: String,
	Email: String,
	Password: String,
	RequestUser: String,
	Location: 
	{
		y: 0,
		x: 0
	},
	UserType: String,
	ProposedRoute: 
	[
		{
			y: 0,
			x: 0
		}
	],
	ActualRoute: 
	[
		{
			y: 0,
			x: 0
		}
	],
	Image: String,
	UserStatus: NotStarted,
	RecordStatus: String,
	Documents: 
	[
		String
	],
	SubscribeToEmails: False,
	Address: 
	{
		Street: String,
		Unit: String,
		City: String,
		State: String,
		Zip: String,
		ContactTitle: String,
		ContactName: String,
		ContactPhone: String,
		ContactEmail: String,
		Location: 
		{
			y: 0,
			x: 0
		},
		SiteName: String,
		GeocodeFailed: False,
		Country: String
	},
	SkillTags: 
	[
		String
	],
	Enabled: False,
	UIPrefTaskColumnsOff: 
	[
		String
	],
	UIPrefTaskColumns: 
	[
		{
			Name: String,
			Width: 0
		}
	],
	Data: 
	{
		String: String
	},
	Teams: 
	[
		String
	],
	Events: 
	[
		{
			ObjectId: String,
			Date: String,
			Location: 
			{
				y: 0,
				x: 0
			},
			Barcode: String,
			Details: String,
			Type: String,
			IsScan: False,
			User: String,
			SelectedBy: String,
			Status: String,
			StatusType: String,
			DateCreated: String,
			Automatic: False
		}
	],
	Color: String,
	VehicleAsset: String,
	ExternalAuth: False,
	CreatedBy: String,
	ServiceAccount: False,
	Assets: 
	[
		String
	],
	TfaRequired: False,
	TfaPreference: String,
	WorkWeek: 
	[
		{
			DayOfWeek: 0,
			Start: 0,
			End: 0,
			Lunch: 0
		}
	],
	CustomSchedulesEnabled: False,
	CustomSchedules: 
	[
		{
			Date: String,
			Start: 0,
			End: 0,
			Type: String
		}
	],
	OverrideSso: False
}