this post was submitted on 15 Oct 2025
3 points (100.0% liked)
PieFed API & mobile app dev
120 readers
1 users here now
Announcements and discussions about the PieFed API - changes, improvements and general co-ordination between the frontend developers and the core of PieFed.
- stable docs (currently 1.2.x branch)
- development docs
founded 3 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Huh...
Alright, if I had to guess, the problem might be in how you are submitting your payload. The fact that those two fields are the only required ones and both of them are considered missing tells me that the most likely scenario is that piefed isn't receiving any of your payload.
The
POST /postendpoint takes a request body with the json structure that you have there. Passing data to the api in a request body like this is different than passing data in query parameters in the url. I am not sure what tool/language you are using to interface with the api, but make sure you are passing the json in the right way for the endpoint.I'm using reqwest within Rust. I think youre definitely right though. Tomorrow when I'm back at my desk ill try submitting the body in a different way
I don't really know rust at all...but combining what I found from a quick search here and the official docs, it looks like you need to build a structure matching the json that is then serialized into json by reqwest rather than passing a json string directly.
omfg... there was a typo in my header...
it's working now