POST Api/WebUtilities/CreateUserAJAX?parent={parent}&SessionId={SessionId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
parent

globally unique identifier

Required

SessionId

globally unique identifier

Required

Body Parameters

UserInfo
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Username

string

None.

Email

string

None.

UserType

UserTypeEnum

None.

FirstName

string

None.

LastName

string

None.

TrialToolIds

Collection of integer

None.

TrialPeriod

integer

None.

Region

string

None.

Market

string

None.

AdditionalData

string

None.

ActivationCode

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "2a7ada2b-82fd-4f3f-9e4e-ae1201f259a7",
  "username": "sample string 1",
  "email": "sample string 2",
  "userType": 1,
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "trialToolIds": [
    1,
    2
  ],
  "trialPeriod": 5,
  "region": "sample string 6",
  "market": "sample string 7",
  "additionalData": "sample string 8",
  "activationCode": "29f5ad13-9c28-491f-bc85-a5ddde098da0"
}

application/xml, text/xml

Sample:
<UserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessManager.LegacyTranslations">
  <ActivationCode>29f5ad13-9c28-491f-bc85-a5ddde098da0</ActivationCode>
  <AdditionalData>sample string 8</AdditionalData>
  <Email>sample string 2</Email>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <Market>sample string 7</Market>
  <Region>sample string 6</Region>
  <TrialPeriod>5</TrialPeriod>
  <TrialToolIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </TrialToolIds>
  <UserId>2a7ada2b-82fd-4f3f-9e4e-ae1201f259a7</UserId>
  <UserType>SingleUser</UserType>
  <Username>sample string 1</Username>
</UserInfo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserInfo'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />