Documentation is lacking and the API does not return error messages consistently.
https://join-lemmy.org/api/interfaces/EditPost.html
is unhelpful since I’m looking for the URL to hit.
I assumed I’d be able to use

https://lemmy.world/api/v3/post/edit?id=xxxxxx&body=YYYYYEEEAAAHHHHHH  

but it does not work and none of my other guesses about the address have worked either. I don’t believe it’s an authorization problem.

  • marsara9
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Looking at the contract / struct. It looks like you should only need the post_id and the auth token. I don’t even see a community_id parameter.

    • aa45cc00BOP
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Okay, that did it - just like you said: use a requests.put with those parameters and that’s all it needs. Thanks!