POST api/User/Save
Request Information
URI Parameters
None.
Body Parameters
UserModelName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
LastName | string |
Required Matching regular expression pattern: ^[a-zA-Z ]+$ |
|
FirstName | string |
Required Matching regular expression pattern: ^[a-zA-Z ]+$ |
|
MiddleName | string |
Matching regular expression pattern: ^[a-zA-Z ]+$ |
|
Address | string |
Required String length: inclusive between 0 and 150 |
|
PhoneNumber | string |
Required Matching regular expression pattern: ^\s*\+?\s*([0-9][\s-]*){2,}$ String length: inclusive between 11 and 20 |
|
string |
Required Data type: EmailAddress Matching regular expression pattern: ^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$ |
||
OrgId | integer |
Required |
|
OrganizationName | string |
None. |
|
IsActive | boolean |
Required |
|
EmailConfirmed | boolean |
None. |
|
DomainEmail | string |
None. |
|
SsoId | string |
None. |
|
OldUserName | string |
None. |
|
SSOMigration | boolean |
None. |
|
Claims | Collection of ClaimBindingModel |
None. |
|
Role | string |
None. |
|
VggRole | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "LastName": "sample string 2", "FirstName": "sample string 3", "MiddleName": "sample string 4", "Address": "sample string 5", "PhoneNumber": "sample string 6", "Email": "sample string 7", "OrgId": 1, "OrganizationName": "sample string 8", "IsActive": true, "EmailConfirmed": true, "DomainEmail": "sample string 10", "SsoId": "sample string 11", "OldUserName": "sample string 12", "SSOMigration": true, "Claims": [ { "Type": "sample string 1", "Value": "sample string 2", "UserRole": "sample string 3" }, { "Type": "sample string 1", "Value": "sample string 2", "UserRole": "sample string 3" } ], "Role": "sample string 14", "VggRole": "sample string 15" }
application/xml, text/xml
Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AvicollectSecurity.Logic.Models"> <Address>sample string 5</Address> <Claims> <ClaimBindingModel> <Type>sample string 1</Type> <UserRole>sample string 3</UserRole> <Value>sample string 2</Value> </ClaimBindingModel> <ClaimBindingModel> <Type>sample string 1</Type> <UserRole>sample string 3</UserRole> <Value>sample string 2</Value> </ClaimBindingModel> </Claims> <DomainEmail>sample string 10</DomainEmail> <Email>sample string 7</Email> <EmailConfirmed>true</EmailConfirmed> <FirstName>sample string 3</FirstName> <Id>sample string 1</Id> <IsActive>true</IsActive> <LastName>sample string 2</LastName> <MiddleName>sample string 4</MiddleName> <OldUserName>sample string 12</OldUserName> <OrgId>1</OrgId> <OrganizationName>sample string 8</OrganizationName> <PhoneNumber>sample string 6</PhoneNumber> <Role>sample string 14</Role> <SSOMigration>true</SSOMigration> <SsoId>sample string 11</SsoId> <VggRole>sample string 15</VggRole> </UserModel>
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.