PUT api/eeb/users/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
UserUpdateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| name | string |
None. |
|
| string |
None. |
||
| designation | string |
None. |
|
| usertype | integer |
None. |
|
| enable | boolean |
None. |
|
| jobs | Collection of UserJobsUpdateDTO |
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,
"enable": true,
"jobs": [
{
"id": 1,
"jobid": 2,
"projectname": "sample string 3",
"jobnumber": "sample string 4"
},
{
"id": 1,
"jobid": 2,
"projectname": "sample string 3",
"jobnumber": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<UserUpdateDTO 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>
<enable>true</enable>
<jobs>
<UserJobsUpdateDTO>
<id>1</id>
<jobid>2</jobid>
<jobnumber>sample string 4</jobnumber>
<projectname>sample string 3</projectname>
</UserJobsUpdateDTO>
<UserJobsUpdateDTO>
<id>1</id>
<jobid>2</jobid>
<jobnumber>sample string 4</jobnumber>
<projectname>sample string 3</projectname>
</UserJobsUpdateDTO>
</jobs>
<name>sample string 2</name>
<username>sample string 1</username>
<usertype>5</usertype>
</UserUpdateDTO>
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.