POST api_v2/AccountUsers/AddToAccount

Добавить пользователя AccountUser в аккаунт Account.

Request Information

Parameters

NameDescriptionAdditional information
userInfo
Данные добавляемого пользователя.

Define this parameter in the request body.

Request body formats

application/xml, text/xml

Sample:
<Request>
  <AccountId>f0f5efc3-b4b2-4cfb-a703-113d7d68a98a</AccountId>
  <Login>sample string 2</Login>
  <Password>sample string 3</Password>
  <Email>sample string 4</Email>
  <FirstName>sample string 5</FirstName>
  <LastName>sample string 6</LastName>
  <MiddleName>sample string 7</MiddleName>
  <FullPhoneNumber>sample string 8</FullPhoneNumber>
  <RegistrationSource>Promo</RegistrationSource>
  <UserSource>sample string 9</UserSource>
</Request>

application/json, text/json

Sample:
{
  "AccountId": "f0f5efc3-b4b2-4cfb-a703-113d7d68a98a",
  "Login": "sample string 2",
  "Password": "sample string 3",
  "Email": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "MiddleName": "sample string 7",
  "FullPhoneNumber": "sample string 8",
  "RegistrationSource": 0
}

Response Information

Идентификатор пользователя облака

Response body formats

application/xml, text/xml

Sample:
<Result>
  <AccountUserID>dd1377f5-d45f-48f1-875c-97b06d696a75</AccountUserID>
</Result>

application/json, text/json

Sample:
{
  "AccountUserID": "dd1377f5-d45f-48f1-875c-97b06d696a75"
}