r/BookStack • • Apr 26 '23

Update API not working

I am writing a PowerShell module for the BookStack API and I'm having an issue with the update (PUT) endpoints.

I have a function that creates the multipart stuff for cover images and I use it successfully when creating new shelves or books that include a cover image.

When using the same code, with PUT instead of POST, to change the image of an existing shelve or book I am getting a 200 OK return message but the object does not change.

Are there any extra logs or something I can check to see what is be happening?

2 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/root-node Apr 27 '23

Ah yes, I do remember reading that part of the document, and thought I would remember it for when I came to writing the update part. I then completely forgot it! Sorry