for owner, author, student, and affiliate
GET /api/v1/pages/:page_id/blocks
Parameters
| Name |
Description |
|
page_id
|
page id
|
|
body
|
body contents
|
Request
Headers
Route
GET /api/v1/pages/2453/blocks
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/pages/2453/blocks" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: nG4sJsAxG9FiCfnfziDokdxzgEz8qP4ktA" \
-H "X-Api-Email: user-56@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"blocks": [
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "checkout",
"position": 10,
"data": {
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6578,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6578",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "closing_letter",
"position": 9,
"data": {
"body": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6577,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6577",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 8,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6576,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6576",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "faq",
"position": 7,
"data": {
"faqs": [
{
"data": {
"answer": "The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.",
"question": "When does the course start and finish?"
}
},
{
"data": {
"answer": "How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.",
"question": "How long do I have access to the course?"
}
},
{
"data": {
"answer": "We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.",
"question": "What if I am unhappy with the course?"
}
}
]
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6575,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6575",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bundle_contents",
"position": 6,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6574,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6574",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "curriculum",
"position": 5,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6573,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6573",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bio",
"position": 4,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6572,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6572",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "description_with_share_icons",
"position": 3,
"data": {
"description": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6571,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6571",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 2,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6570,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6570",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "hero",
"position": 1,
"data": {
"hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png",
"background_opacity": 0.0,
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6569,
"custom_relations_data": {
"video": null
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6569",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 10,
"page": 1,
"from": 1,
"to": 10,
"per": 25,
"number_of_pages": 1,
"query": {
"page_id": "2453"
}
}
}
Request
Headers
Route
GET /api/v1/pages/2453/blocks
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/pages/2453/blocks" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: nG4sJsAxG9FiCfnfziDokdxzgEz8qP4ktA" \
-H "X-Api-Email: user-56@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"blocks": [
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "checkout",
"position": 10,
"data": {
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6578,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6578",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "closing_letter",
"position": 9,
"data": {
"body": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6577,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6577",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 8,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6576,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6576",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "faq",
"position": 7,
"data": {
"faqs": [
{
"data": {
"answer": "The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.",
"question": "When does the course start and finish?"
}
},
{
"data": {
"answer": "How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.",
"question": "How long do I have access to the course?"
}
},
{
"data": {
"answer": "We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.",
"question": "What if I am unhappy with the course?"
}
}
]
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6575,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6575",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bundle_contents",
"position": 6,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6574,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6574",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "curriculum",
"position": 5,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6573,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6573",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bio",
"position": 4,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6572,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6572",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "description_with_share_icons",
"position": 3,
"data": {
"description": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6571,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6571",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 2,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6570,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6570",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "hero",
"position": 1,
"data": {
"hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png",
"background_opacity": 0.0,
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6569,
"custom_relations_data": {
"video": null
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6569",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 10,
"page": 1,
"from": 1,
"to": 10,
"per": 25,
"number_of_pages": 1,
"query": {
"page_id": "2453"
}
}
}
Request
Headers
Route
GET /api/v1/pages/2453/blocks
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/pages/2453/blocks" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: nG4sJsAxG9FiCfnfziDokdxzgEz8qP4ktA" \
-H "X-Api-Email: user-56@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"blocks": [
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "checkout",
"position": 10,
"data": {
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6578,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6578",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "closing_letter",
"position": 9,
"data": {
"body": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6577,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6577",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 8,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6576,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6576",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "faq",
"position": 7,
"data": {
"faqs": [
{
"data": {
"answer": "The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.",
"question": "When does the course start and finish?"
}
},
{
"data": {
"answer": "How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.",
"question": "How long do I have access to the course?"
}
},
{
"data": {
"answer": "We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.",
"question": "What if I am unhappy with the course?"
}
}
]
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6575,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6575",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bundle_contents",
"position": 6,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6574,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6574",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "curriculum",
"position": 5,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6573,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6573",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bio",
"position": 4,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6572,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6572",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "description_with_share_icons",
"position": 3,
"data": {
"description": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6571,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6571",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 2,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6570,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6570",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "hero",
"position": 1,
"data": {
"hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png",
"background_opacity": 0.0,
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6569,
"custom_relations_data": {
"video": null
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6569",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 10,
"page": 1,
"from": 1,
"to": 10,
"per": 25,
"number_of_pages": 1,
"query": {
"page_id": "2453"
}
}
}
Request
Headers
Route
GET /api/v1/pages/2453/blocks
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/pages/2453/blocks" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: nG4sJsAxG9FiCfnfziDokdxzgEz8qP4ktA" \
-H "X-Api-Email: user-56@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"blocks": [
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "checkout",
"position": 10,
"data": {
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6578,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6578",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "closing_letter",
"position": 9,
"data": {
"body": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6577,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6577",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 8,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6576,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6576",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "faq",
"position": 7,
"data": {
"faqs": [
{
"data": {
"answer": "The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.",
"question": "When does the course start and finish?"
}
},
{
"data": {
"answer": "How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.",
"question": "How long do I have access to the course?"
}
},
{
"data": {
"answer": "We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.",
"question": "What if I am unhappy with the course?"
}
}
]
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6575,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6575",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bundle_contents",
"position": 6,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6574,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6574",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "curriculum",
"position": 5,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6573,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6573",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "bio",
"position": 4,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6572,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6572",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "description_with_share_icons",
"position": 3,
"data": {
"description": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6571,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6571",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "coupon_banner",
"position": 2,
"data": {
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6570,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6570",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:07:51Z",
"are_dependencies_met": true,
"partial": "hero",
"position": 1,
"data": {
"hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png",
"background_opacity": 0.0,
"enroll_button_text": null
},
"page_id": 2453,
"course_id": 302,
"is_hidden": false,
"id": 6569,
"custom_relations_data": {
"video": null
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6569",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 10,
"page": 1,
"from": 1,
"to": 10,
"per": 25,
"number_of_pages": 1,
"query": {
"page_id": "2453"
}
}
}