POST
/users
curl \
--request POST 'https://garden-to-yours.herokuapp.com/users' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"email":"user@example.com","lastName":"pepito","password":"asdasd\u0026%$\u0026fsdf5SDF","firstName":"geremi","dateOfBirth":"2000-08-24"}'
Request example
{
"email": "user@example.com",
"lastName": "pepito",
"password": "asdasd&%$&fsdf5SDF",
"firstName": "geremi",
"dateOfBirth": "2000-08-24"
}
Response examples (201)
{
"_id": "string",
"firstName": "string",
"email": "hello@example.com",
"username": "string",
"password": "string",
"lastName": "string",
"dateOfBirth": "2000-08-24T00:00:00.000Z",
"emailVerified": true,
"createDate": "2025-05-04",
"location": "string",
"image": "string"
}