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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Users">
  <Address>String</Address>
  <Address2>String</Address2>
  <BirthDate>0001-01-01T00:00:00</BirthDate>
  <City>String</City>
  <Company>String</Company>
  <Country>String</Country>
  <Culture>String</Culture>
  <DisplayName>String</DisplayName>
  <Email>String</Email>
  <FullName>String</FullName>
  <Gender>String</Gender>
  <Id>0</Id>
  <Language>String</Language>
  <MailAddress>String</MailAddress>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>Tags</d2p1:Key>
      <d2p1:Value>{String:[String]}</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <Name>String</Name>
  <Nickname>String</Nickname>
  <ParentRepId>String</ParentRepId>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <Phone>String</Phone>
  <PhoneNumber>String</PhoneNumber>
  <PostalCode>String</PostalCode>
  <PrimaryEmail>String</PrimaryEmail>
  <RetailerId>String</RetailerId>
  <Role>Administrator</Role>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>Administrator</d2p1:string>
  </Roles>
  <SalesRepId>String</SalesRepId>
  <Shard>String</Shard>
  <State>String</State>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
  <TimeZone>String</TimeZone>
  <UserName>String</UserName>
  <Zip>String</Zip>
  <salesRep>
    <Address>String</Address>
    <Bio>String</Bio>
    <City>String</City>
    <CommissionGroup>String</CommissionGroup>
    <Country>String</Country>
    <CustomerServiceEmailAddress>String</CustomerServiceEmailAddress>
    <Email>String</Email>
    <Id>String</Id>
    <IsActive>false</IsActive>
    <Manager>String</Manager>
    <Name>String</Name>
    <Phone>String</Phone>
    <RegionId>String</RegionId>
    <RepGroupId>String</RepGroupId>
    <State>String</State>
    <Zip>String</Zip>
  </salesRep>
</UpdateUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UserUpdated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Users">
  <Address xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address2>
  <BirthDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</BirthDate>
  <BirthDateRaw xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</BirthDateRaw>
  <City xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</City>
  <Company xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Company>
  <Country xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Country>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</CreatedDate>
  <Culture xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Culture>
  <DigestHa1Hash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DigestHa1Hash>
  <DisplayName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DisplayName>
  <Email xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Email>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FirstName>
  <FullName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FullName>
  <Gender xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Gender>
  <Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</Id>
  <InvalidLoginAttempts xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</InvalidLoginAttempts>
  <Language xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Language>
  <LastLoginAttempt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LastLoginAttempt>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</LastName>
  <LockedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LockedDate>
  <MailAddress xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</MailAddress>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>Tags</d2p1:Key>
      <d2p1:Value>{String:[String]}</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</ModifiedDate>
  <Nickname xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Nickname>
  <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PasswordHash>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PhoneNumber>
  <PostalCode xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PostalCode>
  <PrimaryEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PrimaryEmail>
  <RecoveryToken xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RecoveryToken>
  <RefId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</RefId>
  <RefIdStr xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RefIdStr>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:string>String</d2p1:string>
  </Roles>
  <Salt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Salt>
  <State xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</State>
  <TimeZone xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</TimeZone>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</UserName>
  <Shard xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Shard>
  <AspMembershipId xmlns="http://schemas.datacontract.org/2004/07/Emun">00000000-0000-0000-0000-000000000000</AspMembershipId>
  <ContactId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</ContactId>
  <RetailerId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</RetailerId>
  <SalesRepId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</SalesRepId>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
</UserUpdated>