Website logo

Edit your review

Edits one your reviews. Currently only applicable to services listings.

URL: https://api.trademe.co.nz/v1/Listings/{listingId}/editreview.{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

listingId Integer (required)

The ID of the listing that has the review to edit.

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

POST Data

<EditReviewRequest>

ReviewText String (required)

The review text (maximum of 500 characters).

Positive Boolean (required)

Indicates whether the review is a positive review (i.e. thumbs up).

ReviewId Integer (required)

The ID of the review to edit.

Returns

<ReviewResponse>

Information on whether the operation was successful.

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)

<EditReviewRequest xmlns="http://api.trademe.co.nz/v1">
  <ReviewText>ABC</ReviewText>
  <Positive>false</Positive>
  <ReviewId>123</ReviewId>
</EditReviewRequest>

Example JSON Request (switch to XML)

{
  "ReviewText": "ABC",
  "Positive": false,
  "ReviewId": 123
}

Example XML Response (switch to JSON)

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

Example JSON Response (switch to XML)

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