POST api/pod/sso/RegisterUser

Request Information

URI Parameters

None.

Body Parameters

UserRegisterationBindingModel
NameDescriptionTypeAdditional information
Username

string

Required

CellphoneNumber

string

Required

Matching regular expression pattern: ^09\d{9}$

Email

string

None.

Firstname

string

None.

Lastname

string

None.

ClientMetadata

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "CellphoneNumber": "sample string 2",
  "Email": "sample string 3",
  "Firstname": "sample string 4",
  "Lastname": "sample string 5",
  "ClientMetadata": "sample string 6"
}

application/xml, text/xml

Sample:
<UserRegisterationBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <CellphoneNumber>sample string 2</CellphoneNumber>
  <ClientMetadata>sample string 6</ClientMetadata>
  <Email>sample string 3</Email>
  <Firstname>sample string 4</Firstname>
  <Lastname>sample string 5</Lastname>
  <Username>sample string 1</Username>
</UserRegisterationBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RegisterUserResponse
NameDescriptionTypeAdditional information
UserId

integer

None.

SsoId

string

None.

HasErrors

boolean

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "SsoId": "sample string 2",
  "HasErrors": false,
  "Messages": []
}

application/xml, text/xml

Sample:
<RegisterUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <SsoId>sample string 2</SsoId>
  <UserId>1</UserId>
</RegisterUserResponse>