PUT api/user/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

m_edit_user
NameDescriptionTypeAdditional information
username

string

Required

String length: inclusive between 0 and 50

firstname

string

String length: inclusive between 0 and 100

lastname

string

String length: inclusive between 0 and 100

status

string

Required

String length: inclusive between 0 and 20

roles

Collection of m_user_role

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "firstname": "sample string 2",
  "lastname": "sample string 3",
  "status": "sample string 4",
  "roles": [
    {
      "id": 1
    },
    {
      "id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_edit_user xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Features.Models">
  <firstname>sample string 2</firstname>
  <lastname>sample string 3</lastname>
  <roles>
    <m_user_role>
      <id>1</id>
    </m_user_role>
    <m_user_role>
      <id>1</id>
    </m_user_role>
  </roles>
  <status>sample string 4</status>
  <username>sample string 1</username>
</m_edit_user>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.