405: Method Not Allowed error when attempting to delete Discussion Posts

Options
Matthew.Thomas94
Matthew.Thomas94 Posts: 10 ASC Beta Tester

I'm am trying to add support for Discussions to my web application and have run into an issue with deleting discussion posts in particular (endpoint reference link).

 

I've tested my GET, POST, and DELETE endpoint calls for Forums and Topics, and all work without issue. I am also able to GET discussion posts without a problem (all posts for a given topic, and specific posts), but trying to call DELETE returns a 405: Method Not Allowed error. The only difference in code is the logic used to construct the endpoint (I have a Post class that appends "/posts/{postId}" to the endpoint).

 

Any ideas on what the issue might be here? My Oauth 2.0 permissions include the "discussions:*:*" scope (and again, DELETE works for Forums and Topics, just not Posts). Checking the Headers from the response, I noticed "allow: [GET, HEAD']". I've attached a screenshot to help with any debugging.

 

Thanks!

 

Screen Shot 2021-01-06 at 11.34.31 AM