Create. API

Pages

Access Levels
Group: content
Resource: pages

List all pages

GET 	https://api.create.net/pages

Response

Status: 200 OK
{ "pages" :[ 
	{
		"ID" : 2640116,
		"page_title" : "Summer Festival",
		"page_type" : "standard",
		"content" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vitae libero ut odio consequat tempor...",
		"title_tag" : "Summer Festival",
		"meta_keywords" : "summer,festival,fun,wahey",
		"meta_description" : "A Summer Festival of fun",
		"is_onmenu" : TRUE,
		"menu_text" : "Summer Festival",
		"page_filename" : "summer-festival",
		"menu_order" : 6,
		"parent_id" : 0,
		"data_set" : NULL
	},
	{
		"ID" : 2640248,
		"page_title" : "Festival Blog",
		"page_type" : "dynamic",
		"content" : "blog",
		"title_tag" : "Our Festival Blog",
		"meta_keywords" : "blog,festival,fun,wahey",
		"meta_description" : "A blog about our Festivals",
		"is_onmenu" : TRUE,
		"menu_text" : "Blog",
		"page_filename" : "festival-blog",
		"menu_order" : 7,
		"parent_id" : 0,
		"data_set" : "https://api.create.net/blog_posts"
	}
]}

Dynamic Pages

If the page is a dynamic page, the content will be the dynamic page type (see below), an additional request will be required to retrieve content specific to the page. The relevant method is specified in “data_set”.

The following pages are dynamic:

Get a page

GET 	https://api.create.net/pages/:id

Response

Status: 200 OK
{ "page" : 
	{
		"ID" : 2640116,
		"page_title" : "Summer Festival",
		"page_type" : "standard",
		"content" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vitae libero ut odio consequat tempor...",
		"title_tag" : "Summer Festival",
		"meta_keywords" : "summer,festival,fun,wahey",
		"meta_description" : "A Summer Festival of fun",
		"is_onmenu" : TRUE,
		"menu_text" : "Summer Festival",
		"page_filename" : "summer-festival",
		"menu_order" : 6,
		"parent_id" : 0
	}
}

Create a page

POST 	https://api.create.net/pages

Input

Param Type Required Description
page_title string Required The page title
page_type string Required The page type
Options: standard, dynamic, or homepage
content string Required The page content
Options: If page_type is standard or homepage then Text or HTML, if page_type is dynamic then, news, events, links, external, contact, shop, blog or guestbook
title_tag string Optional Title meta tag of the page. Used for SEO
meta_keywords string Optional Keywords meta of the page. Used for SEO
meta_description string Optional Description meta tag of the page. Used for SEO
is_onmenu Boolean Required Show this page on your menu.
TRUE = Yes, False = No
menu_text string Required The text for the menu item
page_filename string Required The filename of the page
menu_order INT Required The menu position of the page
parent_id INT Optional Used for creating parent and sub-pages.

Response

Status: 201 Created
Location: http://api.create.net/pages/236
{ "page" : 
	{
		"ID" : 2640116,
		"page_title" : "Summer Festival",
		"page_type" : "standard",
		"content" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vitae libero ut odio consequat tempor...",
		"title_tag" : "Summer Festival",
		"meta_keywords" : "summer,festival,fun,wahey",
		"meta_description" : "A Summer Festival of fun",
		"is_onmenu" : TRUE,
		"menu_text" : "Summer Festival",
		"page_filename" : "summer-festival",
		"menu_order" : 6,
		"parent_id" : 0
	}
}

Update a page

PUT 	https://api.create.net/pages/:id

Input

Param Type Required Description
page_title string Optional The page title
page_type string Optional The page type
Options: standard, dynamic, or homepage
content string Optional The page content
Options: If page_type is standard or homepage then Text or HTML, if page_type is dynamic then, news, events, links, external, contact, shop, blog or guestbook
title_tag string Optional Title meta tag of the page. Used for SEO
meta_keywords string Optional Keywords meta of the page. Used for SEO
meta_description string Optional Description meta tag of the page. Used for SEO
is_onmenu Boolean Optional Show this page on your menu.
TRUE = Yes, False = No
menu_text string Optional The text for the menu item
page_filename string Optional The filename of the page
menu_order INT Optional The menu position of the page
parent_id INT Optional Used for creating parent and sub-pages.

Response

Status: 200 OK

Delete a page

DELETE 	https://api.create.net/pages/:id

Response

Status: 200 OK