Insert product review

Inserts a product review and returns the new list. Likes and Dislikes will be set to zero.

Request
query Parameters
cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

Request Body schema:

The actual Review to insert. Likes and Dislikes will be ignored and set to zero.

Id
integer or null <int32>

The internal id of the review. Null or left out when creating new reviews.

ReferenceId
integer <int32>

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Name
string

The name of the reviewer. MaxLength: 255

Email
string

The email address of the reviewer. MaxLength: 255

Text
string

The review text. MaxLength: max

Url
string

A Url to some external source referenced by the reviewer. MaxLength: 255

ImagePath
string

A Url to some external image uploaded by the reviewer. MaxLength: 255

Score
number <decimal>

The review score, if scores are kept. It is up to the application to define the score range.

Date
string <date-time>

The date of the review.

Likes
integer <int32>

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikes
integer <int32>

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublished
boolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

Responses
200

Success

500

Internal Server Error

post/ProductService.svc/rest/InsertProductReview
Request samples
{
  • "Id": 0,
  • "ReferenceId": 0,
  • "Name": "string",
  • "Email": "string",
  • "Text": "string",
  • "Url": "string",
  • "ImagePath": "string",
  • "Score": 0,
  • "Date": "2019-08-24T14:15:22Z",
  • "Likes": 0,
  • "Dislikes": 0,
  • "IsPublished": true
}
Response samples
[
  • {
    }
]