Fixed Rest API endpoint to mark a post as solution

Emiel Bolwidt

New member
If we have a questions forum we can mark posts there as solution using /index.php?posts/10/mark-solution . As we are integrating xenforo into our own digital platform i need to be able to do this call using the REST apis. However I cant find the endpoint to mark a post as solution or use POST /posts/ID for voting there is POST /posts/ID/vote.

What endpoint could I use?
 
I don't believe this is exposed in the API yet, so I'm moving it to the bugs forum so it doesn't fall off radar.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.4).

Change log:
Create a new POST post/{id}/mark-solution endpoint, to toggle/switch the solution post. Returns old_solution_post and new_solution_post to allow switching behaviours.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom