PUT api/UserPermission/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

m_UserAccountCreate
NameDescriptionTypeAdditional information
title

string

Required

String length: inclusive between 0 and 10

username

string

Required

String length: inclusive between 0 and 20

password

string

Required

String length: inclusive between 0 and 20

confirm_password

string

Required

String length: inclusive between 0 and 20

status

string

Required

String length: inclusive between 0 and 1

firstname

string

Required

String length: inclusive between 0 and 100

lastname

string

Required

String length: inclusive between 0 and 100

phone_num

string

String length: inclusive between 0 and 10

email

string

String length: inclusive between 0 and 255

position

string

Required

department

string

Required

Request Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "username": "sample string 2",
  "password": "sample string 3",
  "confirm_password": "sample string 4",
  "status": "sample string 5",
  "firstname": "sample string 6",
  "lastname": "sample string 7",
  "phone_num": "sample string 8",
  "email": "sample string 9",
  "position": "sample string 10",
  "department": "sample string 11"
}

application/xml, text/xml

Sample:
<m_UserAccountCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.WebAPI.Models.Permission">
  <confirm_password>sample string 4</confirm_password>
  <department>sample string 11</department>
  <email>sample string 9</email>
  <firstname>sample string 6</firstname>
  <lastname>sample string 7</lastname>
  <password>sample string 3</password>
  <phone_num>sample string 8</phone_num>
  <position>sample string 10</position>
  <status>sample string 5</status>
  <title>sample string 1</title>
  <username>sample string 2</username>
</m_UserAccountCreate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'm_UserAccountCreate'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.