POST Account/Add
Request Information
URI Parameters
None.
Body Parameters
User| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| UserName | string |
Required String length: inclusive between 0 and 150 |
|
| Password | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| string |
String length: inclusive between 0 and 200 |
||
| CreateAt | date |
None. |
|
| PasswordLastUpdate | date |
None. |
|
| Phone | string |
None. |
|
| Role | Roles |
None. |
|
| DisplayName | string |
None. |
|
| PushToken | string |
None. |
|
| NumberOfPurchaseOrderToCome | integer |
None. |
Request Formats
application/json, text/json, multipart/form-data
Sample:
{
"id": "7ba590f2-955d-4bcb-b2d6-5a6c80865fc6",
"username": "sample string 2",
"password": "sample string 3",
"firstname": "sample string 4",
"lastname": "sample string 5",
"email": "sample string 6",
"createat": "2025-11-08T10:50:17.0120878+01:00",
"passwordlastupdate": "2025-11-08T10:50:17.0120878+01:00",
"phone": "sample string 8",
"role": 0,
"displayname": "sample string 4 sample string 5",
"pushtoken": "sample string 9",
"numberofpurchaseordertocome": 0
}
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
RequestResult| Name | Description | Type | Additional information |
|---|---|---|---|
| DbErrors | Collection of DbEntityValidationResult |
None. |
|
| LogicErrors | Collection of LogicError |
None. |
|
| HasErrors | boolean |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json, multipart/form-data
Sample:
{
"dberrors": null,
"logicerrors": null,
"haserrors": false,
"data": {}
}
application/xml, text/xml
Sample:
<RequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MichelSAS.Errors"> <Data /> <DbErrors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Validation" i:nil="true" /> <LogicErrors xmlns:d2p1="http://schemas.datacontract.org/2004/07/MichelSASLogic.Classes" i:nil="true" /> </RequestResult>