Skip to main content

Add Page

OAuthScope

ZohoCommerce.pages.CREATE

 

HTTP Request

POST https://commerce.zoho.com/zs-site/api/v1/pages

 

Headers

HeaderValues
AuthorizationZoho-oauthtoken {{ your_auth_token }}
X-Site-Idzsite_id which is obtained in Get All Stores API.

 

Body Parameters

ParametersDescription
resource_nameString : Name of the page to be created.
resource_url*String : URL of the page to be created.
resource_idlong : Resource ID of the page.
parent_idlong : Parent ID of the page
is_home_pageboolean : Denotes whether the page to be created is the home page.
custom_sidebarboolean : Denotes whether custom sidebar is enabled on the page
custom_banner boolean : Denotes whether custom banner is enabled on the page.

 

Request Example

Copiedcurl -X POST "https://commerce.zoho.com/zs-site/api/v1/pages"
-H "Authorization: Zoho-oauthtoken ***"
-H "X-Site-Id: 6103"
-d '{"resource_url":"test","resource_name":"test"}'

Response Example

Copied{
"status_code":"0",
"status_message":"success",
"api_kind":"addPage",
"add_page":{
"resource_id":"1144831000000309005",
"head_resource_id":"1144831000000002003",
"base_type":1,
"resource_type":1,
"content_format":0,
"resource_url":"test",
"resource_name":"test",
"created_time":"2020-04-24T05:13:38.685Z",
"created_by":"656486275",
"last_modified_time":"2020-04-24T05:13:38.685Z",
"last_modified_by":"656486275",
"modifier_name":"John",
"parent_id":"1144831000000002005",
"skip_publish":false,
"system_protected":false,
"trash":0,
"purge":false,
"home_resource_id":"0",
"is_home_page":false,
"resource_visibility":0,
"custom_sidebar":false,
"custom_banner":false,
"sidebar_flag":2,
"banner_flag":0,
"menu_flag":2,
"sitemap":{
"priority":"0.5",
"include_page":true
},
"stand_alone":false,
"sub_site_id":"1144831000000002005",
"site_level":-1
}
}

Show full

Show less

This API is used to add a page to your store.