POST api/Account/Register

Registers user to the application

Request Information

URI Parameters

None.

Body Parameters

UserModel
NameDescriptionTypeAdditional information
UserName

Unique user name required to register and access the API

string

Required

String length: inclusive between 6 and 100

Password

The password must have 1 uppercase, 1 special character, 1 digit and 1 lowercase. And It should be atleast 6 characters long

string

Required

Data type: Password

Matching regular expression pattern: ^(?=.*[A-Z])(?=.*[!@#$&*])(?=.*[0-9])(?=.*[a-z]).{6,}$

String length: inclusive between 6 and 100

ConfirmPassword

The password and confirm password should match

string

Data type: Password

AccessCode

Access code is required to register as a new user. This code should be provided to you.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "ConfirmPassword": "sample string 3",
  "AccessCode": "sample string 4"
}

application/xml, text/xml

Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcurementApi.Models">
  <AccessCode>sample string 4</AccessCode>
  <ConfirmPassword>sample string 3</ConfirmPassword>
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</UserModel>

application/x-www-form-urlencoded

Sample:
AccessCode=sample string 1&UserName=sample string 1&Password=sample string 2&ConfirmPassword=sample string 3

Response Information

Resource Description

None.