POST api/user
Request Information
URI Parameters
None.
Body Parameters
UserCorporateRoleEntityName | Description | Type | Additional information |
---|---|---|---|
UserId | integer |
None. |
|
UserName | string |
None. |
|
Password | string |
None. |
|
string |
None. |
||
Status | string |
None. |
|
ShowTermsAndConditions | boolean |
None. |
|
RolesByCorporates | string |
None. |
|
Corporates | string |
None. |
|
Admin | boolean |
None. |
|
Operational | boolean |
None. |
|
AccountManager | boolean |
None. |
|
GeneralAdministrator | boolean |
None. |
|
ContactId | integer |
None. |
|
UserCorporates | Collection of UserCorporateEntity |
None. |
|
UserRoles | Collection of UserRoleEntity |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserId": 1, "UserName": "sample string 2", "Password": "sample string 3", "Email": "sample string 4", "Status": "sample string 5", "ShowTermsAndConditions": true, "RolesByCorporates": "sample string 7", "Corporates": "sample string 8", "Admin": true, "Operational": true, "AccountManager": true, "GeneralAdministrator": true, "ContactId": 13, "UserCorporates": [ { "UserCorporateId": 1, "UserId": 2, "Username": "sample string 3", "Email": "sample string 4", "CorporateId": 1, "Corporate": "sample string 5", "LogoURL": "sample string 6", "ContactId": 1, "FirstName": "sample string 7", "LastName": "sample string 8", "IsDefault": true, "Checked": true, "AuthProviderId": "sample string 11", "CreatedBy": "sample string 12", "CreatedByUserId": 13, "CreatedOn": "2024-12-14T22:36:14.868191+00:00", "ModifiedBy": "sample string 15", "ModifiedByUserId": 16, "ModifiedOn": "2024-12-14T22:36:14.868191+00:00" }, { "UserCorporateId": 1, "UserId": 2, "Username": "sample string 3", "Email": "sample string 4", "CorporateId": 1, "Corporate": "sample string 5", "LogoURL": "sample string 6", "ContactId": 1, "FirstName": "sample string 7", "LastName": "sample string 8", "IsDefault": true, "Checked": true, "AuthProviderId": "sample string 11", "CreatedBy": "sample string 12", "CreatedByUserId": 13, "CreatedOn": "2024-12-14T22:36:14.868191+00:00", "ModifiedBy": "sample string 15", "ModifiedByUserId": 16, "ModifiedOn": "2024-12-14T22:36:14.868191+00:00" } ], "UserRoles": [ { "UserRoleId": 1, "RoleId": 2, "Description": "sample string 3", "Checked": true, "CorporateId": 1, "CorporateRoleId": 1 }, { "UserRoleId": 1, "RoleId": 2, "Description": "sample string 3", "Checked": true, "CorporateId": 1, "CorporateRoleId": 1 } ] }
application/xml, text/xml
Sample:
<UserCorporateRoleEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Entities"> <AccountManager>true</AccountManager> <Admin>true</Admin> <ContactId>13</ContactId> <Corporates>sample string 8</Corporates> <Email>sample string 4</Email> <GeneralAdministrator>true</GeneralAdministrator> <Operational>true</Operational> <Password>sample string 3</Password> <RolesByCorporates>sample string 7</RolesByCorporates> <ShowTermsAndConditions>true</ShowTermsAndConditions> <Status>sample string 5</Status> <UserCorporates> <UserCorporateEntity> <CreatedBy>sample string 12</CreatedBy> <CreatedByUserId>13</CreatedByUserId> <CreatedOn>2024-12-14T22:36:14.868191+00:00</CreatedOn> <ModifiedBy>sample string 15</ModifiedBy> <ModifiedByUserId>16</ModifiedByUserId> <ModifiedOn>2024-12-14T22:36:14.868191+00:00</ModifiedOn> <AuthProviderId>sample string 11</AuthProviderId> <Checked>true</Checked> <ContactId>1</ContactId> <Corporate>sample string 5</Corporate> <CorporateId>1</CorporateId> <Email>sample string 4</Email> <FirstName>sample string 7</FirstName> <IsDefault>true</IsDefault> <LastName>sample string 8</LastName> <LogoURL>sample string 6</LogoURL> <UserCorporateId>1</UserCorporateId> <UserId>2</UserId> <Username>sample string 3</Username> </UserCorporateEntity> <UserCorporateEntity> <CreatedBy>sample string 12</CreatedBy> <CreatedByUserId>13</CreatedByUserId> <CreatedOn>2024-12-14T22:36:14.868191+00:00</CreatedOn> <ModifiedBy>sample string 15</ModifiedBy> <ModifiedByUserId>16</ModifiedByUserId> <ModifiedOn>2024-12-14T22:36:14.868191+00:00</ModifiedOn> <AuthProviderId>sample string 11</AuthProviderId> <Checked>true</Checked> <ContactId>1</ContactId> <Corporate>sample string 5</Corporate> <CorporateId>1</CorporateId> <Email>sample string 4</Email> <FirstName>sample string 7</FirstName> <IsDefault>true</IsDefault> <LastName>sample string 8</LastName> <LogoURL>sample string 6</LogoURL> <UserCorporateId>1</UserCorporateId> <UserId>2</UserId> <Username>sample string 3</Username> </UserCorporateEntity> </UserCorporates> <UserId>1</UserId> <UserName>sample string 2</UserName> <UserRoles> <UserRoleEntity> <Checked>true</Checked> <CorporateId>1</CorporateId> <CorporateRoleId>1</CorporateRoleId> <Description>sample string 3</Description> <RoleId>2</RoleId> <UserRoleId>1</UserRoleId> </UserRoleEntity> <UserRoleEntity> <Checked>true</Checked> <CorporateId>1</CorporateId> <CorporateRoleId>1</CorporateRoleId> <Description>sample string 3</Description> <RoleId>2</RoleId> <UserRoleId>1</UserRoleId> </UserRoleEntity> </UserRoles> </UserCorporateRoleEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.