has published courses and pages
GET /api/v1/school
Parameters
| Name |
Description |
|
name
|
School Name
|
Request
Headers
Route
GET /api/v1/school
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/school" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: uMAGvaPTpH9oAYcQtx1-B-nR226Szmut9w" \
-H "X-Api-Email: user-269@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:09:50Z",
"has_setup_provider_stripe_connect": false,
"has_setup_provider_paypal": false,
"can_disable_teachable_accounts": true,
"eligible_for_refund": false,
"completed_onboarding_sessions": false,
"plan_supports_importing_students": false,
"free_plan": false,
"setup_progress": {
"courses": {
"published": false
}
},
"preferences": {
"preenrollments_enabled": false,
"class_periods_enabled": false,
"turn_off_fedora_branding": false,
"require_terms_agreement": true,
"automatically_add_disqus_attachments": true,
"course_blocks_beta": true,
"eu_vat_tax_enabled": false,
"eu_vat_tax_eligible": true,
"display_vat_inclusive_prices": true,
"charge_exclusive_tax": true,
"exclusive_vat_on_custom_gateways": true,
"authors_can_publish_courses": false,
"authors_can_email_students": false,
"authors_can_set_course_prices": false,
"authors_can_manage_coupons": false,
"authors_can_import_students": false,
"authors_can_manage_course_pages": false,
"comments_moderation": false,
"comments_threaded": true,
"teachable_accounts_enabled": false,
"turn_off_myteachable_sign_up_branding": false,
"autoplay_lectures": true,
"autocomplete_lectures": false,
"recalc_course_pct_on_lecture_publish": false,
"recaptcha_enabled_on_signup": false,
"prevent_payment_plan_cancellation": true,
"allow_comment_attachments": true,
"disable_js_course_event_tracking": false,
"ssl_forced": false,
"ssl_forced_from_creation": false,
"tax_form_collection_enabled": false,
"css_properties_enabled": false,
"new_text_editor_enabled": true,
"teachable_payments_enabled": true,
"themeable_disabled": false,
"paypal_enabled": false,
"support_legacy_course_description": false,
"support_legacy_course_hero": false,
"support_legacy_course_video": false,
"authors_can_manage_certificates": false,
"authors_can_issue_certificates": false
},
"teachable_payments_beta_school": false,
"is_customized": false,
"has_active_credentials": false,
"primary_domain_url": "school.worksonmy.computer",
"plan_supports_subscriptions": true,
"plan_supports_custom_domains": true,
"plan_supports_webhooks": true,
"plan_supports_bank_deposit": false,
"plan_supports_authors": false,
"plan_supports_affiliates": false,
"plan_supports_desktop_app": false,
"plan_supports_whitelabeling": false,
"plan_supports_video_reports": false,
"plan_supports_student_reports": false,
"plan_supports_graded_quizzes": false,
"plan_supports_priority_support": false,
"plan_supports_payment_gateways": null,
"plan_supports_captions": false,
"plan_supports_multi_language_captions": false,
"plan_supports_external_sales": false,
"plan_supports_native_comments": false,
"plan_supports_code_snippets": false,
"plan_supports_drip_content": false,
"plan_admins_cap": null,
"plan_affiliates_cap": null,
"plan_supports_power_editor": false,
"plan_supports_email_editor": false,
"plan_supports_extensions": true,
"plan_transaction_fee_base": 0,
"plan_transaction_fee_percent": 0.05,
"plan_supports_teachable_accounts": true,
"plan_supports_native_certificates": null,
"plan_supports_custom_roles": null,
"plan_supports_teachable_u": true,
"school_coupon": null,
"active_school_coupon?": null,
"coupon_expires_at": null,
"card_url": "http://school.worksonmy.computer/current_user/credit_card",
"webinar_popup_cohort": "quickstart",
"purchasing_blocked?": null,
"prevent_payment_plan_cancellation": true,
"allow_comment_attachments": true,
"comments_threaded": true,
"comments_moderation": false,
"recaptcha_enabled_on_signup": false,
"unreleased_blocks_whitelist": null,
"plan_supports_emailing_students": true,
"plan_supports_upsell_reports": false,
"plan_supports_live_chat": false,
"disable_js_course_event_tracking": false,
"plan_supports_vat_taxes": null,
"affiliate_cookie_duration_days": 365,
"affiliate_external_urls_enabled": null,
"bazaar_enabled": false,
"new_text_editor_enabled": false,
"teachable_payments_enabled": true,
"uses_teachable_payments?": false,
"previously_used_teachable_payments?": false,
"paypal_enabled": false,
"back_office_enabled": false,
"legacy_back_office": false,
"plan_supports_back_office": null,
"name": "School 131",
"heading": "example heading",
"description": "school description",
"facebook_username": "school262",
"twitter_username": "school263",
"homepage_id": null,
"google_plus_username": null,
"primary_domain_id": 606,
"primary_owner_id": 1373,
"logged_out_homepage_id": 2858,
"logged_in_homepage_id": null,
"course_id": null,
"email": "school-131@example.com",
"email_from_name": "School 131",
"school_plan_id": 626,
"paypal_email": null,
"payout_method": null,
"last_four": null,
"is_launched": true,
"is_domain_confirmed": true,
"is_survey_onboarded": true,
"school_coupon_id": null,
"coupon_applied_at": null,
"is_blog_enabled": null,
"blog_title": null,
"blog_description": null,
"blog_about": null,
"onboarding_workshop_at": null,
"id": 669,
"feature_cohort_id": null,
"vat_id": null,
"meta": {
"class": "school",
"url": null,
"name": "School 131",
"description": "school description",
"image_url": null
},
"primary_domain": {
"created_at": "2019-10-31T22:09:50Z",
"url": "school.worksonmy.computer",
"redirect_to_primary": null,
"id": 606,
"meta": {
"class": "domain",
"url": "/domains/606/",
"name": "606",
"description": "",
"image_url": null
}
},
"school_plan": {
"created_at": "2019-10-31T22:09:50Z",
"plan_ranking_value": 1,
"name": "basic",
"amount": 3900,
"transaction_fee_base": 0,
"transaction_fee_percent": 0.05,
"supports_custom_domains": true,
"position": 1,
"supports_bank_deposit": false,
"supports_subscriptions": true,
"supports_webhooks": true,
"supports_graded_quizzes": false,
"supports_priority_support": false,
"supports_importing_students": false,
"supports_drip_content": false,
"stripe_plan_id": "school_plan_626",
"is_published": true,
"feature_text": "basic",
"interval": "month",
"supports_payment_gateways": null,
"supports_native_comments": false,
"supports_extensions": true,
"supports_coupons": null,
"supports_teachable_accounts": true,
"supports_code_snippets": false,
"supports_emailing_students": true,
"supports_upsell_reports": false,
"supports_native_certificates": null,
"supports_custom_roles": null,
"supports_back_office": null,
"admins_cap": null,
"affiliates_cap": null,
"domains_cap": null,
"id": 626,
"supports_vat_taxes": null,
"meta": {
"class": "schoolplan",
"url": null,
"name": "basic",
"description": "",
"image_url": null
}
}
}