Publish a review

Publish a pending or rejected review so shoppers see it on your storefront.

POST https://cotlet.dev/api/v1/okendo/reviews/{review_id}/publish

write Confirm

Clicks Publish on the review's toolbar in Reviews > Moderation and returns the new status. The review appears on your storefront, so it reaches shoppers. Okendo does not let you edit review text, so the review goes up as the customer wrote it. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: publish_review
NameTypeDescription
review_id string required string review_id from list_reviews.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/okendo/reviews/rev_4a91c7/publish \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("okendo", "publish_review", {"review_id":"rev_4a91c7"})
Node.js
const result = await cotlet.call('okendo', 'publish_review', {"review_id":"rev_4a91c7"});
CLI
cotlet call okendo publish_review --data '{"review_id":"rev_4a91c7"}'

Example response

JSON

{
  "review_id": "rev_4a91c7",
  "status": "published"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.