Create. API

Categories

Access Levels
Group: shop, products_and_categories
Resource: categories

List all categories

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

Input

GET 	https://api.create.net/categories?parent_category=222608
Param Type Required Description
parent_category INT Optional Get all sub categories with parent ID

Response

Status: 200 OK
{ "categories" :[ 
	{
		"ID" : 271099,
		"parent_category" : 222608,
		"title" : "Hiking",
		"title_tag" : "Hiking Gear",
		"meta_description" : "Buy new hiking gear",
		"meta_keywords" : "hiking, clothing, gear"
	}
]}

Get a category

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

Response

Status: 200 OK
{ "category" : 
	{
		"ID" : 271099,
		"parent_category" : 222608,
		"title" : "Hiking",
		"title_tag" : "Hiking Gear",
		"meta_description" : "Buy new hiking gear",
		"meta_keywords" : "hiking, clothing, gear"
	}
}

Create a category

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

Input

Param Type Required Description
parent_category INT Optional ID of parent category
title string Required Title of category
title_tag string Optional Meta title tag of category. Used for SEO
meta_keywords string Optional The category keyword meta. Used for SEO
meta_description string Optional The category description meta. Used for SEO

Response

Status: 201 Created
Location: http://api.create.net/categories/2455436
{ "category" : 
	{
		"ID" : 271099,
		"parent_category" : 222608,
		"title" : "Hiking",
		"title_tag" : "Hiking Gear",
		"meta_description" : "Buy new hiking gear",
		"meta_keywords" : "hiking, clothing, gear"
	}
}

Update a category

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

Input

Param Type Required Description
parent_category INT Optional ID of parent category
title string Optional Title of category
title_tag string Optional Meta title tag of category. Used for SEO
meta_keywords string Optional The category keyword meta. Used for SEO
meta_description string Optional The category description meta. Used for SEO

Response

Status: 200 OK

Delete a category

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

Response

Status: 200 OK