Rank 3: Container
Hello,
I have created a sign up form in my app and currently using the Rest API server side to create a new user like:
payload['email'] = email; payload['password'] = password;
const response = await fetch(`${AppwriteEndpoint}/account/sessions/email`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Appwrite-Project': AppwriteProject }, body: JSON.stringify(payload)
});```
I need to create a document in a collection called userData which will hold other information about the user, I looked over the Rest API docs but i can not find how to create a document or the correct endpoint. I am not even sure this is possible.
Thanks for any advice.