EMUN1 ASP.NET

<back to all web services

UpdateUser

The following routes are available for this service:
All Verbs/service/UpdateUser
UpdateUser Parameters:
NameParameterData TypeRequiredDescription
AddressquerystringNo
Address2querystringNo
BirthDatequeryDateTime?No
CityquerystringNo
CompanyquerystringNo
CountryquerystringNo
CulturequerystringNo
DisplayNamequerystringNo
EmailquerystringNo
ParentRepIdquerystringNo
FullNamequerystringNo
NamequerystringNo
ZipquerystringNo
MailAddressquerystringNo
PhonequerystringNo
PhoneNumberquerystringNo
GenderquerystringNo
IdqueryintNo
LanguagequerystringNo
NicknamequerystringNo
PostalCodequerystringNo
PrimaryEmailquerystringNo
StatequerystringNo
ShardquerystringNo
TimeZonequerystringNo
UserNamequerystringNo
RetailerIdquerystringNo
SalesRepIdquerystringNo
RolequeryRolesNo
salesRepquerySalesRepNo
RolesqueryList<string>No
PermissionsqueryList<string>No
MetaqueryDictionary<string, string>No
TagsqueryDictionary<string, HashSet<String>>No
SalesRep Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
EmailformstringNo
BioformstringNo
RegionIdformstringNo
RepGroupIdformstringNo
CommissionGroupformstringNo
PhoneformstringNo
ManagerformstringNo
AddressformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
IsActiveformboolNo
CustomerServiceEmailAddressformstringNo
EmunUserAuth Parameters:
NameParameterData TypeRequiredDescription
ContactIdformstringNo
RetailerIdformstringNo
SalesRepIdformstringNo
AspMembershipIdformGuidNo
MetaformDictionary<string, string>No
TagsformDictionary<string, HashSet<String>>No
ShardedUserAuth Parameters:
NameParameterData TypeRequiredDescription
ShardformstringNo
EmailformstringNo
UserNameformstringNo
MetaformDictionary<string, string>No
UserAuth Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
SaltformstringNo
PasswordHashformstringNo
DigestHa1HashformstringNo
RolesformList<string>No
PermissionsformList<string>No
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
InvalidLoginAttemptsformintNo
LastLoginAttemptformDateTime?No
LockedDateformDateTime?No
RecoveryTokenformstringNo
RefIdformint?No
RefIdStrformstringNo
MetaformDictionary<string, string>No

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 /service/UpdateUser HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	address: String,
	address2: String,
	birthDate: 0001-01-01,
	city: String,
	company: String,
	country: String,
	culture: String,
	displayName: String,
	email: String,
	parentRepId: String,
	fullName: String,
	name: String,
	zip: String,
	mailAddress: String,
	phone: String,
	phoneNumber: String,
	gender: String,
	id: 0,
	language: String,
	nickname: String,
	postalCode: String,
	primaryEmail: String,
	state: String,
	shard: String,
	timeZone: String,
	userName: String,
	retailerId: String,
	salesRepId: String,
	role: Administrator,
	salesRep: 
	{
		id: String,
		name: String,
		email: String,
		bio: String,
		regionId: String,
		repGroupId: String,
		commissionGroup: String,
		phone: String,
		manager: String,
		address: String,
		city: String,
		state: String,
		zip: String,
		country: String,
		isActive: False,
		customerServiceEmailAddress: String
	},
	roles: 
	[
		Administrator
	],
	permissions: 
	[
		String
	],
	meta: 
	{
		String: String,
		Tags: "{
			String: 
			[
				String
			]
		}"
	},
	tags: 
	{
		String: 
		[
			String
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	contactId: String,
	retailerId: String,
	salesRepId: String,
	meta: 
	{
		String: String,
		Tags: "{
			String: 
			[
				String
			]
		}"
	},
	tags: 
	{
		String: 
		[
			String
		]
	},
	shard: String,
	email: String,
	userName: String,
	id: 0,
	primaryEmail: String,
	phoneNumber: String,
	firstName: String,
	lastName: String,
	displayName: String,
	company: String,
	birthDate: 0001-01-01,
	birthDateRaw: String,
	address: String,
	address2: String,
	city: String,
	state: String,
	country: String,
	culture: String,
	fullName: String,
	gender: String,
	language: String,
	mailAddress: String,
	nickname: String,
	postalCode: String,
	timeZone: String,
	salt: String,
	passwordHash: String,
	digestHa1Hash: String,
	roles: 
	[
		String
	],
	permissions: 
	[
		String
	],
	createdDate: 0001-01-01,
	modifiedDate: 0001-01-01,
	invalidLoginAttempts: 0,
	lastLoginAttempt: 0001-01-01,
	lockedDate: 0001-01-01,
	recoveryToken: String,
	refId: 0,
	refIdStr: String
}