Reviews

Updates the position of a review within its product's review list. Other reviews are reindexed accordingly.

post/reviews/{id}/position

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

ReviewPositionRequest required
position, integer required

Zero-based ordinal position within the product's reviews

Response

Review reordered

Review required
id, string required
object, string required
rating, integer required
customer_name, string nullable required
content, string nullable required
created_at, string date-time required
customer_image_url, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision