POST api/AspNetUser/UpdateUserRole?email={email}&Role={Role}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
email

string

Required

Role

string

Required

Body Parameters

AspNetUserViewModel
NameDescriptionTypeAdditional information
Id

string

None.

UserName

string

None.

ProfileName

string

None.

PhoneNumber

string

None.

Email

string

None.

Disable

boolean

None.

ProfileImage

string

None.

Address

string

None.

DepartmentID

integer

None.

Gender

string

None.

PostingPlaceID

integer

None.

Role

string

None.

DepartmentName

string

None.

PostingPlaceName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "UserName": "sample string 2",
  "ProfileName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "Email": "sample string 5",
  "Disable": true,
  "ProfileImage": "sample string 7",
  "Address": "sample string 8",
  "DepartmentID": 9,
  "Gender": "sample string 10",
  "PostingPlaceID": 11,
  "Role": "sample string 12",
  "DepartmentName": "sample string 13",
  "PostingPlaceName": "sample string 14"
}

application/xml, text/xml

Sample:
<AspNetUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 8</Address>
  <DepartmentID>9</DepartmentID>
  <DepartmentName>sample string 13</DepartmentName>
  <Disable>true</Disable>
  <Email>sample string 5</Email>
  <Gender>sample string 10</Gender>
  <Id>sample string 1</Id>
  <PhoneNumber>sample string 4</PhoneNumber>
  <PostingPlaceID>11</PostingPlaceID>
  <PostingPlaceName>sample string 14</PostingPlaceName>
  <ProfileImage>sample string 7</ProfileImage>
  <ProfileName>sample string 3</ProfileName>
  <Role>sample string 12</Role>
  <UserName>sample string 2</UserName>
</AspNetUserViewModel>

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 'AspNetUserViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.