Goodreads Developers discussion
Add reviews problem
date
newest »


I don't know why the add review it's throwing that error.


I can actually perform status updates posts, but not add reviews :/. Any idea why this is happening ??
Hey Paul,
Can you post the book id and other values that you're passing in?
You'll get a 422 response if the review could not be created for some reason. The xml response should contain the errors that are causing the review to not be saved. What does the xml response you're getting look like?
One reason you might be getting that is if you've already shelved the book...for example, if you've shelved a book as "to-read" and then try to create a review for the book on your "read" shelf. You mentioned " the shelf parameter is the one I want to move the book to" ... is it possible that you already have a review for that book?
If you just want to move a book from one shelf to another, you need to use the review/edit endpoint: https://www.goodreads.com/api/index#r...
Can you post the book id and other values that you're passing in?
You'll get a 422 response if the review could not be created for some reason. The xml response should contain the errors that are causing the review to not be saved. What does the xml response you're getting look like?
One reason you might be getting that is if you've already shelved the book...for example, if you've shelved a book as "to-read" and then try to create a review for the book on your "read" shelf. You mentioned " the shelf parameter is the one I want to move the book to" ... is it possible that you already have a review for that book?
If you just want to move a book from one shelf to another, you need to use the review/edit endpoint: https://www.goodreads.com/api/index#r...

I'm getting this error in the response:
errors
error>Book has already been reviewed by this user
/error>
/errors>
But I've tried to make a review with a new book that I just added to the "currently-reading" shelve. :/
Is it already on the currently-reading shelf, and you're trying to move it to another shelf? You shouldn't create a new review if you're trying to just move it from one shelf to another. You'd need to edit the existing review and change the shelf from "currently-reading" to "read" (or whatever shelf you're moving it to)

Thanks in advance for your help.
You should be able to pass in the rating, review text, read_at date, shelf name, etc into the review.edit endpoint:
https://www.goodreads.com/api/index#r...
https://www.goodreads.com/api/index#r...
I'm using the provied url:
https://www.goodreads.com/review.xml
And passing this parameters:
book_id
review[review]
review[rating]
shelf
and i suppose that the shelf parameter is the one I want to move the book to.
I'll really appreciate your help.
Thanks in advance.