POST api/Account/RegisterCompanyUser
Request Information
URI Parameters
None.
Body Parameters
RegisterCompanyUserBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
None. |
||
| Username | string |
Required Data type: Text |
|
| Role | string |
None. |
|
| CompanyCode | string |
Required String length: inclusive between 0 and 10 |
|
| Firstname | string |
None. |
|
| Lastname | string |
None. |
|
| Address | string |
None. |
|
| Telephone | string |
None. |
|
| Password | string |
Required Data type: Password String length: inclusive between 8 and 100 |
|
| ConfirmPassword | string |
Data type: Password |
|
| ImageName | string |
String length: inclusive between 0 and 100 |
|
| ImageContent | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Email": "sample string 1",
"Username": "sample string 2",
"Role": "sample string 3",
"CompanyCode": "sample string 4",
"Firstname": "sample string 5",
"Lastname": "sample string 6",
"Address": "sample string 7",
"Telephone": "sample string 8",
"Password": "sample string 9",
"ConfirmPassword": "sample string 10",
"ImageName": "sample string 11",
"ImageContent": "sample string 12"
}
application/xml, text/xml
Sample:
<RegisterCompanyUserBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models"> <ImageContent xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">sample string 12</ImageContent> <ImageName xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">sample string 11</ImageName> <Address>sample string 7</Address> <CompanyCode>sample string 4</CompanyCode> <ConfirmPassword>sample string 10</ConfirmPassword> <Email>sample string 1</Email> <Firstname>sample string 5</Firstname> <Lastname>sample string 6</Lastname> <Password>sample string 9</Password> <Role>sample string 3</Role> <Telephone>sample string 8</Telephone> <Username>sample string 2</Username> </RegisterCompanyUserBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.