[API][v3] Adding item using POST endpoint fails when specifying valid collection id (int)

3 posts • viewed 36 times

This message aims at: reporting a bug

Status: Solved
Upvotes: 0
Downvotes: 0
I tried to make real sure on this one lol...

**Summary**
When submitting a POST to /users/{user_id}/collected_items, a 400 with the message "Invalid collection <collection_id>" even when the int specified in the error message is valid.

**Details**

I detailed the Python calls and process, as well as included a verbose debugging output in a gist here:
https://gist.github.com/namachieli/7bb0271f415d796744ba47506c76146f

You can see where i fetch the list of collections with IDs to verify the ID is valid for the user.

I also Verified this behavior was consistent by using the API Client in the API Documentation GUI using the same data used as the input to the Python SDK. (Attached Pictures)
Fails:

Works:



Let me know if more details are needed. Thanks!
Thanks for your thorough testing! It's fixed.
Status changed to Solved (Xavier, 1-Apr-2022, 10:23 am)
Excellent, thanks for the fast turn around!

Used time zone is UTC+2:00.
Current time is 09:37 pm.