PUT api/Users/UserProfile?userName={userName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userName

string

Required

Body Parameters

UserProfileViewModel
NameDescriptionTypeAdditional information
UserName

string

None.

Role

string

None.

Email

string

None.

DateofBirth

date

None.

Address

string

None.

EmailConfirmed

boolean

None.

PhoneNumber

string

None.

StaffId

integer

None.

Designation

string

None.

AboutMe

string

None.

ProfilePicture

string

None.

profilePictureUrl

string

None.

BatchYear

string

None.

UserId

string

None.

FirstName

string

None.

LastName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Role": "sample string 2",
  "Email": "sample string 3",
  "DateofBirth": "2020-08-08T01:03:44.9347011-04:00",
  "Address": "sample string 5",
  "EmailConfirmed": true,
  "PhoneNumber": "sample string 7",
  "StaffId": 8,
  "Designation": "sample string 9",
  "AboutMe": "sample string 10",
  "ProfilePicture": "sample string 11",
  "profilePictureUrl": "sample string 12",
  "BatchYear": "sample string 13",
  "UserId": "sample string 14",
  "FirstName": "sample string 15",
  "LastName": "sample string 16"
}

application/xml, text/xml

Sample:
<UserProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels">
  <FirstName>sample string 15</FirstName>
  <LastName>sample string 16</LastName>
  <UserId>sample string 14</UserId>
  <AboutMe>sample string 10</AboutMe>
  <BatchYear>sample string 13</BatchYear>
  <Designation>sample string 9</Designation>
  <ProfilePicture>sample string 11</ProfilePicture>
  <UserName i:nil="true" />
  <profilePictureUrl>sample string 12</profilePictureUrl>
  <Address>sample string 5</Address>
  <DateofBirth>2020-08-08T01:03:44.9347011-04:00</DateofBirth>
  <Email>sample string 3</Email>
  <EmailConfirmed>true</EmailConfirmed>
  <PhoneNumber>sample string 7</PhoneNumber>
  <Role>sample string 2</Role>
  <StaffId>8</StaffId>
  <UserName>sample string 1</UserName>
</UserProfileViewModel>

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.