POST api/eeb/users
Request Information
URI Parameters
None.
Body Parameters
UserCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| name | string |
None. |
|
| string |
None. |
||
| designation | string |
None. |
|
| usertype | integer |
None. |
|
| jobs | Collection of UserJobsCreateDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"name": "sample string 2",
"email": "sample string 3",
"designation": "sample string 4",
"usertype": 5,
"jobs": [
{
"jobid": 1,
"projectname": "sample string 2",
"jobnumber": "sample string 3"
},
{
"jobid": 1,
"projectname": "sample string 2",
"jobnumber": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<UserCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EEB_API.Models.DTO">
<designation>sample string 4</designation>
<email>sample string 3</email>
<jobs>
<UserJobsCreateDTO>
<jobid>1</jobid>
<jobnumber>sample string 3</jobnumber>
<projectname>sample string 2</projectname>
</UserJobsCreateDTO>
<UserJobsCreateDTO>
<jobid>1</jobid>
<jobnumber>sample string 3</jobnumber>
<projectname>sample string 2</projectname>
</UserJobsCreateDTO>
</jobs>
<name>sample string 2</name>
<username>sample string 1</username>
<usertype>5</usertype>
</UserCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.