Website logo

Update your email address

Update the user's email address.

URL: https://api.trademe.co.nz/v1/MyTradeMe/UpdateEmailAddress.{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.
xml Serialize responses into XML.
json Serialize responses into JSON.

POST Data

<UpdateEmailRequest>

EmailAddress String (optional)

The requested new email address for a member. 50 characters or less.

Password String (optional)

The user's password. This will be compared against the password of the authenticated user and an error will be returned if they are different.

Returns

<UpdateEmailResponse>

Success if the user's email address is updated.

Success Boolean

Indicates whether the operation was successful.

Description String or null

The description of the error, if the operation failed.

Example XML Request (switch to JSON)

<UpdateEmailRequest xmlns="http://api.trademe.co.nz/v1">
  <EmailAddress>ABC</EmailAddress>
  <Password>ABC</Password>
</UpdateEmailRequest>

Example JSON Request (switch to XML)

{
  "EmailAddress": "ABC",
  "Password": "ABC"
}

Example XML Response (switch to JSON)

<UpdateEmailResponse xmlns="http://api.trademe.co.nz/v1">
  <Success>false</Success>
  <Description>ABC</Description>
</UpdateEmailResponse>

Example JSON Response (switch to XML)

{
  "Success": false,
  "Description": "ABC"
}