without a password
POST /api/v1/users
Parameters
| Name |
Description |
|
id
|
id
|
|
email
|
Student email
|
|
role
|
role of user, student if not set
|
|
password
|
password for user, will email confirmation if not set
|
Request
Headers
Route
POST /api/v1/users
Body
{"email":"d546b94cac026985eca4284ff55cf7f9@example.com"}
cURL
curl "http://localhost:3000/api/v1/users" -d '{"email":"d546b94cac026985eca4284ff55cf7f9@example.com"}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: f-xLx2HY11sR1tkukhk7des4bqEK1Kh7rw" \
-H "X-Api-Email: user-333@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
201 Created
Body
{
"created_at": "2019-10-31T22:10:18Z",
"role": "student",
"sanitized_name": null,
"gravatar_url": "https://s.gravatar.com/avatar/f3da438e58d19460215a1fe573531817?d=mm",
"is_teachable_account": false,
"author_bio": null,
"author_bio_id": null,
"custom_role": null,
"custom_role_name": null,
"primary_owner?": false,
"show_custom_role_upgrade?": false,
"email": "d546b94cac026985eca4284ff55cf7f9@example.com",
"notes": null,
"affiliate_code": "699_qffm8add",
"name": null,
"is_owner": false,
"sign_in_count": 0,
"is_student": true,
"is_affiliate": false,
"is_author": false,
"src": null,
"current_sign_in_at": null,
"last_four": null,
"paypal_email": null,
"affiliate_revenue_share": null,
"joined_at": "2019-10-31T22:10:18Z",
"signed_up_affiliate_code": null,
"author_revenue_share": 0.0,
"last_sign_in_ip": null,
"current_sign_in_ip": null,
"id": 1441,
"school_id": 699,
"teachable_account_id": null,
"is_staff_user": null,
"agree_updated_privacy_policy": true,
"unsubscribe_from_marketing_emails": null,
"meta": {
"class": "user",
"url": null,
"name": null,
"description": "",
"image_url": null
},
"transactions_gross": 0
}