POST api/Account/SetAvatar

Request Information

URI Parameters

None.

Body Parameters

AvatarBinding
NameDescriptionTypeAdditional information
Avatar

Immagine base64 format

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Avatar": "sample string 1"
}

text/html

Sample:
{"Avatar":"sample string 1"}

application/xml, text/xml

Sample:
<AvatarBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiServer.Models">
  <Avatar>sample string 1</Avatar>
</AvatarBinding>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.