PUT api/Users/UpdateOwnProfile

Request Information

URI Parameters

None.

Body Parameters

UpdateProfileBindingModel
NameDescriptionTypeAdditional information
LiteUser

LiteUserLarge

Required

Types

Collection of string

Required

Request Formats

application/json, text/json

Sample:
{
  "LiteUser": {
    "AgeConfirm14": true,
    "UserYearLevels": [
      64,
      64
    ],
    "BankAccountName": "sample string 2",
    "BankAccountNumber": "sample string 3",
    "DirectoryUsername": "sample string 4",
    "AboutMe": "sample string 5",
    "AddressCity": "sample string 6",
    "AddressLat": 1.0,
    "AddressLine1": "sample string 7",
    "AddressLine2": "sample string 8",
    "AddressLng": 1.0,
    "AddressPostCode": "sample string 9",
    "ProfileImage": "QEA=",
    "Id": "sample string 10",
    "Email": "sample string 11",
    "FirstName": "sample string 12",
    "LastName": "sample string 13",
    "PhoneNumber": "sample string 14",
    "ProfileImageThumbnail": "QEA=",
    "Rating": {
      "JobsCompletedCount": 1,
      "SmilesCount": 2
    },
    "YearLevel": 15,
    "RoleName": "sample string 16",
    "IsBlacklisted": true,
    "CreatedOn": "2019-12-09T16:06:38.8703127+00:00",
    "SchoolName": "sample string 19",
    "VouchCount": 20
  },
  "Types": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<UpdateProfileBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models">
  <LiteUser xmlns:d2p1="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
    <d2p1:CreatedOn>2019-12-09T16:06:38.8703127+00:00</d2p1:CreatedOn>
    <d2p1:Email>sample string 11</d2p1:Email>
    <d2p1:FirstName>sample string 12</d2p1:FirstName>
    <d2p1:Id>sample string 10</d2p1:Id>
    <d2p1:IsBlacklisted>true</d2p1:IsBlacklisted>
    <d2p1:LastName>sample string 13</d2p1:LastName>
    <d2p1:PhoneNumber>sample string 14</d2p1:PhoneNumber>
    <d2p1:ProfileImageThumbnail>QEA=</d2p1:ProfileImageThumbnail>
    <d2p1:Rating>
      <d2p1:JobsCompletedCount>1</d2p1:JobsCompletedCount>
      <d2p1:SmilesCount>2</d2p1:SmilesCount>
    </d2p1:Rating>
    <d2p1:RoleName>sample string 16</d2p1:RoleName>
    <d2p1:SchoolName>sample string 19</d2p1:SchoolName>
    <d2p1:VouchCount>20</d2p1:VouchCount>
    <d2p1:YearLevel>15</d2p1:YearLevel>
    <d2p1:AboutMe>sample string 5</d2p1:AboutMe>
    <d2p1:AddressCity>sample string 6</d2p1:AddressCity>
    <d2p1:AddressLat>1</d2p1:AddressLat>
    <d2p1:AddressLine1>sample string 7</d2p1:AddressLine1>
    <d2p1:AddressLine2>sample string 8</d2p1:AddressLine2>
    <d2p1:AddressLng>1</d2p1:AddressLng>
    <d2p1:AddressPostCode>sample string 9</d2p1:AddressPostCode>
    <d2p1:ProfileImage>QEA=</d2p1:ProfileImage>
    <d2p1:AgeConfirm14>true</d2p1:AgeConfirm14>
    <d2p1:BankAccountName>sample string 2</d2p1:BankAccountName>
    <d2p1:BankAccountNumber>sample string 3</d2p1:BankAccountNumber>
    <d2p1:DirectoryUsername>sample string 4</d2p1:DirectoryUsername>
    <d2p1:UserYearLevels xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:unsignedByte>64</d3p1:unsignedByte>
      <d3p1:unsignedByte>64</d3p1:unsignedByte>
    </d2p1:UserYearLevels>
  </LiteUser>
  <Types xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Types>
</UpdateProfileBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.