PATCH api/Users/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UserDetails
NameDescriptionTypeAdditional information
UserID

integer

None.

LocationID

integer

None.

FirstName

string

Max length: 35

Min length: 1

LastName

string

Max length: 35

Min length: 1

UserSince

date

None.

LastActivity

date

None.

PrimaryEmail

string

Required

Data type: EmailAddress

Max length: 200

Min length: 5

SecondaryEmail

string

Data type: EmailAddress

Max length: 200

Min length: 5

PhoneNumber

string

Matching regular expression pattern: ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$

Bio

string

Max length: 750

FieldOfStudy

string

None.

Img

string

Max length: 150

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "LocationID": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "UserSince": "2018-12-16T02:32:18.2093246-07:00",
  "LastActivity": "2018-12-16T02:32:18.2093246-07:00",
  "PrimaryEmail": "sample string 7",
  "SecondaryEmail": "sample string 8",
  "PhoneNumber": "sample string 9",
  "Bio": "sample string 10",
  "FieldOfStudy": "sample string 11",
  "Img": "sample string 13"
}

application/xml, text/xml

Sample:
<UserDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PulseAPI.Models">
  <Bio>sample string 10</Bio>
  <FieldOfStudy>sample string 11</FieldOfStudy>
  <FirstName>sample string 2</FirstName>
  <Img>sample string 13</Img>
  <LastActivity xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2018-12-16T09:32:18.2093246Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes>
  </LastActivity>
  <LastName>sample string 3</LastName>
  <LocationID>1</LocationID>
  <PhoneNumber>sample string 9</PhoneNumber>
  <PrimaryEmail>sample string 7</PrimaryEmail>
  <SecondaryEmail>sample string 8</SecondaryEmail>
  <UserID>1</UserID>
  <UserSince xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2018-12-16T09:32:18.2093246Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes>
  </UserSince>
</UserDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.