Type
|
Create
|
List
|
Categories and Subcategories
|
URL
|
http://{domain}/api/v2/categories/create.json
|
Accepts Filters
|
No
|
Output Attributes
|
No
|
Create Categories and Subcategories
These parameters are used for creating Categories and Subcategories.
Data Points
Parameter
|
Type
|
Required
|
Notes
|
Example
|
name
|
string
|
Yes
|
Category Name
|
Electronics
|
display_name
|
string
|
No
|
Category Display Name
|
Electronics
|
directory_structure
|
string
|
No
|
Category Directory Structure
|
electronics
|
page_template
|
int
|
Yes
|
Category Page Template
|
2
|
subcategory_page_template
|
int
|
Yes
|
Subcategory Page Template
|
3
|
subcategory
|
array
|
No
|
Array of Subcategory Information
|
|
status
|
int
|
No
|
Status of Category
|
0, 1, or 2
|
Subcategory Values
These are the values for Subcategory info.
Parameter
|
Type
|
Required
|
Notes
|
Example
|
name
|
string
|
Yes
|
Subcategory Name
|
Tablets
|
display_name
|
string
|
Yes
|
Subcategory Display Name
|
Tablets
|
directory_structure
|
string
|
No
|
Subcategory Directory Structure
|
electronics/tablet
|
subcategory_page_template
|
int
|
Yes
|
Subcategory Page Template
|
3
|
status
|
int
|
No
|
Status of Subcategory
|
0, 1, or 2
|
Response
Example JSON returned
{
"code": "200",
"data": [
{
"id": "3",
"title": "Electronics",
"tag": "85FNWNFREST2G2H8SX2B1PM51"
}
]
}