POST api/Users

Create User

Request Information

URI Parameters

None.

Body Parameters

UsersAddModels
NameDescriptionTypeAdditional information
Email

User login(email)

string

Required

FirstName

string

None.

LastName

string

None.

NotificationEmails

Collection of string

None.

Company

string

None.

Enabled

boolean

Required

Password

User password

string

Required

String length: inclusive between 6 and 100

DestinationList

Collection of DestinationForNewUser

None.

SendEmailInstruction

Send email with instructions to the user

boolean

None.

LicenseManagmentMode

Mode of user license management

UserModeType

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "NotificationEmails": [
    "sample string 1",
    "sample string 2"
  ],
  "Company": "sample string 4",
  "Enabled": true,
  "Password": "sample string 6",
  "DestinationList": [
    {
      "AccountID": "sample string 1",
      "Destination": "sample string 2",
      "PackageID": 3
    },
    {
      "AccountID": "sample string 1",
      "Destination": "sample string 2",
      "PackageID": 3
    }
  ],
  "SendEmailInstruction": true,
  "LicenseManagmentMode": 0
}

application/xml, text/xml

Sample:
<UsersAddModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <Company>sample string 4</Company>
  <DestinationList>
    <DestinationForNewUser>
      <AccountID>sample string 1</AccountID>
      <Destination>sample string 2</Destination>
      <PackageID>3</PackageID>
    </DestinationForNewUser>
    <DestinationForNewUser>
      <AccountID>sample string 1</AccountID>
      <Destination>sample string 2</Destination>
      <PackageID>3</PackageID>
    </DestinationForNewUser>
  </DestinationList>
  <Email>sample string 1</Email>
  <Enabled>true</Enabled>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <LicenseManagmentMode>Manual</LicenseManagmentMode>
  <NotificationEmails xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </NotificationEmails>
  <Password>sample string 6</Password>
  <SendEmailInstruction>true</SendEmailInstruction>
</UsersAddModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ID of new user or error

string

Response Formats

application/json, text/json

Sample:
"sample string"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string</string>