POST api/v4/createuser

Request Information

URI Parameters

None.

Body Parameters

CreateUserRequestModel
NameDescriptionTypeAdditional information
Token

The token returned after login used for authentication

string

None.

UserID

The user id returned after login used for authentication

unsigned integer

None.

ParentGroupID

The group id of the parent group

unsigned integer

None.

Company

The name of the group to create

string

None.

Username

The desired username used to log into the system

string

None.

Password

The desired password used to log into the system

string

None.

Name

The name of the new user

string

None.

Address

The address of the new user

string

None.

Postcode

The postcode of the new user

string

None.

EmailAddress

The email address of the new user

string

None.

PhoneNumber

The phone number of the new user

string

None.

FaxNumber

The fax number of the new user

string

None.

MobileNumber

The mobile number of the new user

string

None.

Timezone

The timezone of the new user

Timezone

None.

Culture

The culture of the new user

Culture

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "UserID": 2,
  "ParentGroupID": 3,
  "Company": "sample string 4",
  "Username": "sample string 5",
  "Password": "sample string 6",
  "Name": "sample string 7",
  "Address": "sample string 8",
  "Postcode": "sample string 9",
  "EmailAddress": "sample string 10",
  "PhoneNumber": "sample string 11",
  "FaxNumber": "sample string 12",
  "MobileNumber": "sample string 13",
  "Timezone": 0,
  "Culture": 0
}

application/xml, text/xml

Sample:
<CreateUserRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Token>sample string 1</Token>
  <UserID>2</UserID>
  <ParentGroupID>3</ParentGroupID>
  <Company>sample string 4</Company>
  <Username>sample string 5</Username>
  <Password>sample string 6</Password>
  <Name>sample string 7</Name>
  <Address>sample string 8</Address>
  <Postcode>sample string 9</Postcode>
  <EmailAddress>sample string 10</EmailAddress>
  <PhoneNumber>sample string 11</PhoneNumber>
  <FaxNumber>sample string 12</FaxNumber>
  <MobileNumber>sample string 13</MobileNumber>
  <Timezone>Africa_Cairo</Timezone>
  <Culture>en_HSS</Culture>
</CreateUserRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateUserResponseModel
NameDescriptionTypeAdditional information
CreatedUserID

The user id of the created user

unsigned integer

None.

CreatedGroupID

The id of the created group

unsigned integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CreatedUserID": 1,
  "CreatedGroupID": 2
}

application/xml, text/xml

Sample:
<CreateUserResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CreatedUserID>1</CreatedUserID>
  <CreatedGroupID>2</CreatedGroupID>
</CreateUserResponseModel>