Field Squared API Services

<back to all web services

UserImport

Bulk import a set of users.

The following routes are available for this service:
POST/{Workspace}/UserImport
UserImport Parameters:
NameParameterData TypeRequiredDescription
WorkspacepathstringNo
UsersbodyList<User>No
RequestIdbodystringNo
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}/UserImport HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Workspace: String,
	Users: 
	[
		{
			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
		}
	],
	RequestId: String
}