Blocks API

reset

POST /api/v1/pages/:page_id/blocks/reset

Parameters

Name Description
page_id page id
body body contents

Request

Headers

Accept: application/json
X-Api-Token: 2UioQNsznyPy1e2ko1K-3pHpJKHzyH3GFg
X-Api-Email: user-58@example.com

Route

POST /api/v1/pages/2459/blocks/reset

Body

{}

cURL

curl "http://localhost:3000/api/v1/pages/2459/blocks/reset" -d '{}' -X POST \
	-H "Accept: application/json" \
	-H "X-Api-Token: 2UioQNsznyPy1e2ko1K-3pHpJKHzyH3GFg" \
	-H "X-Api-Email: user-58@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:07:52Z",
  "draft": null,
  "friendly_url": "friendly-url-25",
  "title": "Course Name 25",
  "meta_description": null,
  "feature": "course_pages",
  "content": null,
  "show_header": true,
  "show_footer": true,
  "show_nav_background_color": false,
  "is_published": true,
  "blank_page_template": null,
  "published_at": null,
  "template": "course_sales_page",
  "course_id": 303,
  "id": 2459,
  "skip_block_loop_wrapper": null,
  "custom_head_code": null,
  "css_properties": {
  },
  "draft_of_id": null,
  "updated_at": "2019-10-31T22:07:52Z",
  "compatibles": {
    "editor": "page_editor"
  },
  "meta": {
    "class": "page",
    "url": null,
    "name": "2459",
    "description": "Course Name 25",
    "image_url": null
  },
  "blocks": [
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "hero",
      "position": 1,
      "data": {
        "background_opacity": 0.0,
        "enroll_button_text": null,
        "hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png"
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6603,
      "custom_relations_data": {
        "video": null
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6603",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "coupon_banner",
      "position": 2,
      "data": {
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6604,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6604",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "description_with_share_icons",
      "position": 3,
      "data": {
        "description": null
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6605,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6605",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "bio",
      "position": 4,
      "data": {
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6606,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6606",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "curriculum",
      "position": 5,
      "data": {
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6607,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6607",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "bundle_contents",
      "position": 6,
      "data": {
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6608,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6608",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "faq",
      "position": 7,
      "data": {
        "faqs": [
          {
            "data": {
              "question": "When does the course start and finish?",
              "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."
            }
          },
          {
            "data": {
              "question": "How long do I have access to the course?",
              "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."
            }
          },
          {
            "data": {
              "question": "What if I am unhappy with the course?",
              "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."
            }
          }
        ]
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6609,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6609",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "coupon_banner",
      "position": 8,
      "data": {
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6610,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6610",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "closing_letter",
      "position": 9,
      "data": {
        "body": null
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6611,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6611",
        "description": "",
        "image_url": null
      }
    },
    {
      "created_at": "2019-10-31T22:07:53Z",
      "are_dependencies_met": true,
      "partial": "checkout",
      "position": 10,
      "data": {
        "enroll_button_text": null
      },
      "page_id": 2459,
      "course_id": 303,
      "is_hidden": false,
      "id": 6612,
      "custom_relations_data": {
      },
      "css_properties": {
      },
      "toggles": {
      },
      "meta": {
        "class": "block",
        "url": null,
        "name": "6612",
        "description": "",
        "image_url": null
      }
    }
  ]
}