URI redirect during delete - incorrect behaviour

NewPPNewPP Registered Users Posts: 3 Beginner grinner
Hi,
I think there's a problem with the API behaviour.
I'm trying to use the API to delete my photo with this URI: DELETE /api/v2/image/XQb8HG3
The API returns with a 301 redirect to /api/v2/image/XQb8HG3-0.
When I go that new URI and try and delete the photo, it appears the photo has already been deleted and I get an error returned.

So... surely the API should either delete the photo using the first URI and return no redirect headers in the response or it should not delete the photo and allow me to redirect to the new URI and do the DELETE in a separate operation.
Could you please report this to the API team?

Thanks,
Rob
Sign In or Register to comment.