Article suggestions
  1. Home
  2. Section: Developer Hub
  3. Reviews API - How to Edit Reviews Data with API Calls

Reviews API - How to Edit Reviews Data with API Calls

Reviews API - How to Edit Reviews Data with API Calls
  • avatar
Written by Chan Nier
Updated on February 19, 2025

 Link: https://support.brilliantdirectories.com/support/solutions/articles/12000097913

When updating a reviews using the api, only one review can be updated at a time.

Using the API there are 4 reviews actions that can be achieved:

  1. api/v2/users_reviews/get/{id}
  2. api/v2/users_reviews /create
  3. api/v2/users_reviews /update
  4. api/v2/users_reviews /delete/{id}

We will break down these actions and explain how to achieve an end results with each one. The examples shown in this article are completed using https://www.postman.com/

For all actions, add the API Key to the Headers:

1. api/v2/users_reviews/get/{id}

Using this action is simple, add the url above but replace {id} with the actual review ID. This will fetch the review's information from the website.

  1. Choose GET as the method
  2. Replace the {{api_url}} for the website url
  3. Replace the {id} with the actial review ID

2. api/v2/users_reviews/create

To use this action it should have the same variables found within the Listing - Write Review form.

The user_id and review_title are required for the api to create the review.

There's one additional variable that can be added for the member to get notified, which is the send_review_email. Set the value to 1 to send the email notification.

  1. Choose POST as the method
  2. In the Body select form-data
  3. Then add the variables

3. api/v2/users_reviews/update

With this action, within the spreadsheet add the review_id and the variables for the information the needs to be updated.

  1. Choose PUT as the method.
  2. In the Body select x-www-form-urlencoded
  3. Then add the variables that will be updated

4. api/v2/users_reviews/delete/{id}

Use this action URL to delete a review, replace {id} with the review ID that will be removed from the website.

  1. Choose DELETE as the method
  2. Replace the {id} with the review_id that will be deleted
  3. In the Params add the review_id to delete


Thank you for leaving a rating!
Did you find this article helpful?
0 out of 0 people found this article helpful so far
Can't find what you're looking for? Get in touch
How can we help?
Send your question below and we'll get back to you as soon as possible.
Cancel
translation missing: en.kb.default.contact_form_error
×
Thanks for your message!
Thanks for your message!
×