Like what we’re doing? Star us on GitHub!

Auto-fill fields in document from REST API `POST` method?

2 weeks ago

I am trying to write a frontend where users can register themselves and take that data(e.g.username, email,password) and create a mew user document for the user amd auto-fill the collection fields with the input. All this coming from Next.js based frontend. Is it possible?

  • jesschow
    Payload Team
    2 weeks ago

    hi @Arskeliss - if I am understanding correctly you want to create a new user using the REST API. You can absolutely do this by sending a POST request to


    along with the required data as the body.
  • Arskeliss
    2 weeks ago

    @jesschow thank you for your reply, that's right I want to use REST API for that. It looks easy enough, reading the docs, i will try it out. 🙌

Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More