Type
|
Create
|
List
|
Page Templates
|
URL
|
http://{domain}/api/v2/pagetemplates/create.json
|
Accepts Filters
|
No
|
Output Attributes
|
No
|
Create Page Templates
These parameters are used for creating Page Templates
Parameter
|
Type
|
Required
|
Notes
|
Example
|
name
|
string
|
Yes
|
Page Template Name
|
DL Template
|
status
|
int
|
No
|
|
0, 1 or 2
|
template_type
|
int
|
No
|
Flex Template type
|
2
|
use_extension
|
boolean
|
No
|
|
true
|
ssl
|
boolean
|
No
|
Must have SSL on domain to use this flag
|
true
|
filter
|
boolean
|
No
|
|
true
|
file
|
int
|
No
|
Flex file
|
7
|
slug
|
string
|
No
|
|
tpl_dl_slug
|
default_directory
|
string
|
No
|
|
dl_template
|
attributes
|
array
|
No
|
See attribute documentation.
|
array(2,3)
|
Page Template Types
1
|
Product
|
2
|
Content
|
3
|
Categories
|
4
|
Subcategories
|
5
|
Include
|
Response
Example JSON returned
{
"code": "200",
"data": [
{
"id": "7",
"title": "Joes Template",
"tag": "B6IZS8TCUMKF3L4Y3H93R7IIM"
}
]
}