I have installed the Lemmy using docker. I need to use API to create a community but it is not allowing me to POST the data. I followed all the steps which is required for creating community using API. Below are the steps I am using for creating a community. Using POSTMAN Headers : Content-Type : application/json

Body parameters name: testing title: testing auth: string

  • akwebdevOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    It was the dummy, anyhow removed

    • Wyatt@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      He meant remove it from the post, anyone can use it to make requests to your server lol

        • Wyatt@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          The guy below was right. Your hitting the wrong url. If that didn’t fix it, it’s probably your postman set up. Does curl work? Ex:

          curl -i -H
          “Content-Type: application/json”
          -X POST
          -d ‘{ “auth”: “you key”, “name”: “some name”, “title”: “some name” }’
          https://someurl.com/api/v3/community