Preferences API

for owner

GET /api/v1/preferences

Request

Headers

Accept: application/json
X-Api-Token: rSJfdSP2H9Y-72Yc-sAAfgPSyGP1y1vkSA
X-Api-Email: user-391@example.com

Route

GET /api/v1/preferences

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/preferences" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: rSJfdSP2H9Y-72Yc-sAAfgPSyGP1y1vkSA" \
	-H "X-Api-Email: user-391@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 337

Status

200 OK

Body

{
  "email_student_joins_school": true,
  "email_student_purchases_course": true,
  "email_student_enrolls_in_free_course": true,
  "email_subscription_billing_errors": true,
  "email_subscription_canceled_manually": true,
  "comment_awaiting_moderation": true,
  "comment_on_moderating_course": null,
  "comment_on_participating_thread": null,
  "comment_responses": true
}