Create
Create
post/v1/users
Body Parameters
namestring
passwordstring
usernamestring
Returns
idstring
api_keystring
created_atstring
namestring
updated_atstring
usernamestring
curl https://todo-ninja-ziix.onrender.com/v1/users \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TODO_NINJA_API_KEY" \
-d '{
"name": "John Doe",
"password": "password",
"username": "john_doe"
}'
200 Example
{
"id": "user_pfh0haxfpzowht3oi213cqos",
"api_key": "3e38b825-82cd-4ed0-be8d-64b89faaf351",
"created_at": "2021-01-01T00:00:00.000Z",
"name": "John Doe",
"updated_at": "2021-01-01T00:00:00.000Z",
"username": "john_doe"
}