POST api/DMS/1/0/CreateUser
Información del Request
Parametros de la URI
No posee parametros
Parametros del Body
SFE.Core.Layer.Models.UserSimple| Nombre | Descripción | Tipo | Información Adicional |
|---|---|---|---|
| accountId | integer |
N/A |
|
| username | string |
N/A |
|
| userTypeId | integer |
N/A |
|
| dmsAccessLevel | integer |
N/A |
|
| string |
N/A |
||
| identification | string |
N/A |
|
| names | string |
N/A |
|
| lastname | string |
N/A |
|
| gender | string |
N/A |
|
| countryId | integer |
N/A |
|
| regionId | integer |
N/A |
|
| districtId | integer |
N/A |
|
| cityId | integer |
N/A |
|
| address | string |
N/A |
|
| phone | string |
N/A |
|
| mobile | string |
N/A |
|
| groups | Collection of integer |
N/A |
Ejemplos de request:
application/json, text/json
Ejemplo:
{
"accountId": 1,
"username": "sample string 1",
"userTypeId": 1,
"dmsAccessLevel": 1,
"email": "sample string 2",
"identification": "sample string 3",
"names": "sample string 4",
"lastname": "sample string 5",
"gender": "sample string 6",
"countryId": 1,
"regionId": 1,
"districtId": 1,
"cityId": 1,
"address": "sample string 7",
"phone": "sample string 8",
"mobile": "sample string 9",
"groups": [
1,
2
]
}
application/xml, text/xml
Ejemplo:
<userSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFE.Core.Layer.Models">
<accountId>1</accountId>
<address>sample string 7</address>
<cityId>1</cityId>
<countryId>1</countryId>
<districtId>1</districtId>
<dmsAccessLevel>1</dmsAccessLevel>
<email>sample string 2</email>
<gender>sample string 6</gender>
<groups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</groups>
<identification>sample string 3</identification>
<lastname>sample string 5</lastname>
<mobile>sample string 9</mobile>
<names>sample string 4</names>
<phone>sample string 8</phone>
<regionId>1</regionId>
<userTypeId>1</userTypeId>
<username>sample string 1</username>
</userSimple>
Información del Response
Descripción de los parametros
SFE.Core.Layer.Models.SimpleResponseOfSystem.Int64| Nombre | Descripción | Tipo | Información Adicional |
|---|---|---|---|
| data | integer |
N/A |
|
| code | string |
N/A |
|
| message | string |
N/A |
|
| details | Collection of SFE.Core.Layer.Models.DetailResponse |
N/A |
Ejemplos de response:
application/json, text/json
Ejemplo:
{
"data": 1,
"code": "sample string 2",
"message": "sample string 3",
"details": [
{
"field": "sample string 1",
"value": "sample string 2",
"code": "sample string 3",
"message": "sample string 4"
},
{
"field": "sample string 1",
"value": "sample string 2",
"code": "sample string 3",
"message": "sample string 4"
}
]
}
application/xml, text/xml
Ejemplo:
<simpleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFE.Core.Layer.Models">
<code>sample string 2</code>
<data>1</data>
<details>
<detailResponse>
<code>sample string 3</code>
<field>sample string 1</field>
<message>sample string 4</message>
<value>sample string 2</value>
</detailResponse>
<detailResponse>
<code>sample string 3</code>
<field>sample string 1</field>
<message>sample string 4</message>
<value>sample string 2</value>
</detailResponse>
</details>
<message>sample string 3</message>
</simpleResponse>