PATCH api/v{version}/users/profile

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

UserPatchUpdateModel
NameDescriptionTypeAdditional information
SuppliedProperties

Collection of JSONPatchItem

None.

FirstName

string

String length: inclusive between 0 and 64

LastName

string

String length: inclusive between 0 and 64

Address

string

String length: inclusive between 0 and 2000

GenderId

byte

None.

NationalCode

string

String length: inclusive between 0 and 16

Avatar

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SuppliedProperties": [
    {
      "Op": 1,
      "Name": "sample string 1",
      "Value": {}
    },
    {
      "Op": 1,
      "Name": "sample string 1",
      "Value": {}
    }
  ],
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Address": "sample string 3",
  "GenderId": 64,
  "NationalCode": "sample string 4",
  "Avatar": "sample string 5"
}

application/xml, text/xml

Sample:
<UserPatchUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Controllers">
  <Address>sample string 3</Address>
  <Avatar>sample string 5</Avatar>
  <FirstName>sample string 1</FirstName>
  <GenderId>64</GenderId>
  <LastName>sample string 2</LastName>
  <NationalCode>sample string 4</NationalCode>
  <SuppliedProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/FastFixCore.Common.UDTs">
    <d2p1:JSONPatchItem>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Op>Add</d2p1:Op>
      <d2p1:Value />
    </d2p1:JSONPatchItem>
    <d2p1:JSONPatchItem>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Op>Add</d2p1:Op>
      <d2p1:Value />
    </d2p1:JSONPatchItem>
  </SuppliedProperties>
</UserPatchUpdateModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.