Upload and set a member's profile image
Uploads and sets the member's profile image.
These images are retained indefinitely.
| URL: | https://api.trademe.co.nz/v1/photos/memberprofile.{file_format} |
|---|---|
| HTTP Method: | POST |
| Requires Authentication? | Yes |
| Permission Required: | MyTradeMeWrite: Maintain your watchlist, answer questions and post comments. |
| Supported Formats: | XML, JSON |
| Rate Limited? | Yes |
URL parameters
| file_format | Enumeration (required) | The format of the response. | ||||
|---|---|---|---|---|---|---|
|
||||||
POST Data
<PhotoUploadRequest>
| PhotoData | String (required) |
The actual image data which is base64 encoded. |
|---|---|---|
| FileName | String (required) |
A textual label for the image, which is intended to make it easier for the user to find the photo when creating a listing. If the file name looks like a path (with forward slash or backslash characters) all characters up to the last slash will be removed. The following characters are not allowed: " < > | |
| FileType | String (required) |
The file type of the image ("BMP", "GIF", "JPG", "JPEG" or "PNG"). Case is ignored. |
Returns
<PhotoResponse>
Success if the image was added to the member's account. Failure otherwise.
| Status | Enumeration |
The status of the photo operation. |
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||