POST api/UserProfiles/Add
Request Information
URI Parameters
None.
Body Parameters
UserProfileBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | string |
String length: inclusive between 0 and 128 |
|
| AccountManagerProfileId | string |
String length: inclusive between 0 and 128 |
|
| FirstName | string |
String length: inclusive between 0 and 55 |
|
| LastName | string |
String length: inclusive between 0 and 55 |
|
| string |
None. |
||
| Address | string |
String length: inclusive between 0 and 256 |
|
| PhoneNbr | string |
None. |
|
| Gender | string |
String length: inclusive between 0 and 22 |
|
| CompanyCode | string |
Required String length: inclusive between 0 and 7 |
|
| CountryId | string |
None. |
|
| PositionId | integer |
None. |
|
| Supervisor | string |
None. |
|
| TourOperatorProfileId | integer |
None. |
|
| ImageName | string |
String length: inclusive between 0 and 100 |
|
| ImageContent | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "sample string 1",
"AccountManagerProfileId": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Email": "sample string 5",
"Address": "sample string 6",
"PhoneNbr": "sample string 7",
"Gender": "sample string 8",
"CompanyCode": "sample string 9",
"CountryId": "sample string 10",
"PositionId": 1,
"Supervisor": "sample string 11",
"TourOperatorProfileId": 1,
"ImageName": "sample string 12",
"ImageContent": "sample string 13"
}
application/xml, text/xml
Sample:
<UserProfileBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <ImageContent>sample string 13</ImageContent> <ImageName>sample string 12</ImageName> <AccountManagerProfileId>sample string 2</AccountManagerProfileId> <Address>sample string 6</Address> <CompanyCode>sample string 9</CompanyCode> <CountryId>sample string 10</CountryId> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Gender>sample string 8</Gender> <LastName>sample string 4</LastName> <PhoneNbr>sample string 7</PhoneNbr> <PositionId>1</PositionId> <Supervisor>sample string 11</Supervisor> <TourOperatorProfileId>1</TourOperatorProfileId> <UserId>sample string 1</UserId> </UserProfileBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ViewCompanyUserAccountManagerViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Supervisor | SupervisorViewModel |
None. |
|
| AccountManager | ViewCompanyUserViewModel |
None. |
|
| Id | string |
None. |
|
| UserName | string |
String length: inclusive between 0 and 55 |
|
| IsInactive | boolean |
None. |
|
| IsLocked | boolean |
None. |
|
| UserId | string |
None. |
|
| FirstName | string |
String length: inclusive between 0 and 55 |
|
| LastName | string |
String length: inclusive between 0 and 55 |
|
| string |
None. |
||
| Address | string |
None. |
|
| PhoneNbr | string |
None. |
|
| Country | LocationAddress |
None. |
|
| Gender | string |
None. |
|
| ImageUrl | string |
None. |
|
| Position | IdLongTextModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"Supervisor": {
"Id": "sample string 1",
"Name": "sample string 2"
},
"AccountManager": {
"Id": "sample string 1",
"UserName": "sample string 2",
"IsInactive": true,
"IsLocked": true,
"UserId": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"Email": "sample string 8",
"Address": "sample string 9",
"PhoneNbr": "sample string 10",
"Country": {
"ImageUrl": "sample string 1",
"Id": "sample string 2",
"Name": "sample string 3"
},
"Gender": "sample string 11",
"ImageUrl": "sample string 12",
"Position": {
"LongText": "sample string 1",
"Id": 2,
"Text": "sample string 3"
}
},
"Id": "sample string 1",
"UserName": "sample string 2",
"IsInactive": true,
"IsLocked": true,
"UserId": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"Email": "sample string 8",
"Address": "sample string 9",
"PhoneNbr": "sample string 10",
"Country": {
"ImageUrl": "sample string 1",
"Id": "sample string 2",
"Name": "sample string 3"
},
"Gender": "sample string 11",
"ImageUrl": "sample string 12",
"Position": {
"LongText": "sample string 1",
"Id": 2,
"Text": "sample string 3"
}
}
application/xml, text/xml
Sample:
<ViewCompanyUserAccountManagerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<Address>sample string 9</Address>
<Country>
<Id>sample string 2</Id>
<Name>sample string 3</Name>
<ImageUrl>sample string 1</ImageUrl>
</Country>
<Email>sample string 8</Email>
<FirstName>sample string 6</FirstName>
<Gender>sample string 11</Gender>
<ImageUrl>sample string 12</ImageUrl>
<LastName>sample string 7</LastName>
<PhoneNbr>sample string 10</PhoneNbr>
<Position>
<Id>2</Id>
<Text>sample string 3</Text>
<LongText>sample string 1</LongText>
</Position>
<Id>sample string 1</Id>
<IsInactive>true</IsInactive>
<IsLocked>true</IsLocked>
<UserId>sample string 5</UserId>
<UserName>sample string 2</UserName>
<AccountManager>
<Address>sample string 9</Address>
<Country>
<Id>sample string 2</Id>
<Name>sample string 3</Name>
<ImageUrl>sample string 1</ImageUrl>
</Country>
<Email>sample string 8</Email>
<FirstName>sample string 6</FirstName>
<Gender>sample string 11</Gender>
<ImageUrl>sample string 12</ImageUrl>
<LastName>sample string 7</LastName>
<PhoneNbr>sample string 10</PhoneNbr>
<Position>
<Id>2</Id>
<Text>sample string 3</Text>
<LongText>sample string 1</LongText>
</Position>
<Id>sample string 1</Id>
<IsInactive>true</IsInactive>
<IsLocked>true</IsLocked>
<UserId>sample string 5</UserId>
<UserName>sample string 2</UserName>
</AccountManager>
<Supervisor>
<Id>sample string 1</Id>
<Name>sample string 2</Name>
</Supervisor>
</ViewCompanyUserAccountManagerViewModel>