Store Front
Update a template.
GETTING STARTED
Store
Custom Domain
Category
Brand
Tag
Store Front
Store Front
Update a template.
Update a template.
PATCH
/
{storeId}
/
storefront
curl --request PATCH \
--url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/storefront \
--header 'Content-Type: application/json' \
--data '{
"pages": [
{
"pageName": "Home",
"pageUrl": "/",
"seoTitle": "Sample Seo Title",
"seoDescription": "Sample Seo Description",
"widgets": [
{
"type": "basic-slider",
"name": "Basic Slider",
"widgetData": [
{
"fields": [
{
"key": "action",
"type": "productCategory",
"values": {
"values": {
"type": "product",
"values": "61d572e4b119b00013a5e61e"
}
}
}
]
}
]
}
]
}
]
}'
{
"pages": [
{
"pageName": "Home",
"pageUrl": "/",
"widgets": [
{
"type": "basic-slider",
"name": "Basic Slider"
}
]
}
],
"createdAt": "2022-03-25T03:17:44.092Z",
"updatedAt": "2022-06-10T07:51:12.510Z"
}
Path Parameters
Store ID for this resource request
Body
application/json
Template Pages
Page identifier
Example:
"Home"
Page URL
Example:
"/"
SEO title of the page
Example:
"Sample Seo Title"
SEO description of the page
Example:
"Sample Seo Description"
Widgets in the page
Widget Type
Example:
"basic-slider"
Name of the widget
Example:
"Basic Slider"
Widget Data
Field Data
Response
200
application/json
Product updated.
Created date
Example:
"2022-03-25T03:17:44.092Z"
Updated date
Example:
"2022-06-10T07:51:12.510Z"
curl --request PATCH \
--url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/storefront \
--header 'Content-Type: application/json' \
--data '{
"pages": [
{
"pageName": "Home",
"pageUrl": "/",
"seoTitle": "Sample Seo Title",
"seoDescription": "Sample Seo Description",
"widgets": [
{
"type": "basic-slider",
"name": "Basic Slider",
"widgetData": [
{
"fields": [
{
"key": "action",
"type": "productCategory",
"values": {
"values": {
"type": "product",
"values": "61d572e4b119b00013a5e61e"
}
}
}
]
}
]
}
]
}
]
}'
{
"pages": [
{
"pageName": "Home",
"pageUrl": "/",
"widgets": [
{
"type": "basic-slider",
"name": "Basic Slider"
}
]
}
],
"createdAt": "2022-03-25T03:17:44.092Z",
"updatedAt": "2022-06-10T07:51:12.510Z"
}