Create a special page
Creates a special page and generates its pretty URL from url in the same request.
name,url,product_collectionandextraction_strategyare required;extraction_strategymay benullto use the site-wide default (SPECIAL_PAGE_EXTRACTION_STRATEGY).urlmust not already be used by another special page or by an existing pretty URL; otherwise the request is rejected with406(special_page_200).On multi-language sites (
PRETTY_URL_MULTI_LANGUAGEon)specialpageprettyurl_setis required; an item in the default language is rejected with406(special_page_100). On single-language sites the field is ignored.Translatable fields are stored in the language selected for the request (
IGNORE_ACCEPT_LANGUAGE_HEADER).
Send the request as multipart/form-data to upload banner or banner_mobile.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a create or full-update request sent as JSON. Images cannot be uploaded in JSON; use multipart/form-data for banner and banner_mobile.
specialpageprettyurl_set is additionally required on multi-language sites (PRETTY_URL_MULTI_LANGUAGE on) and ignored on single-language sites.
The name of the page. Stored in the language selected for the request.
The URL of the page. Must not be the URL of another special page or the path of another pretty URL. Turkish characters are not accepted.
The storefront template used to render the page.
Send null to remove the desktop banner image.
Send null to remove the mobile banner image.
The link the banner points to. Stored in the language selected for the request.
The identifier of an existing product collection.
The text shown with the banner. Stored in the language selected for the request.
Whether the page is active.
trueEmbed code of a video shown on the page. Stored in the language selected for the request.
The product extraction strategy to use for the page. Either the short name or the full value is accepted; send null to use the site-wide default (SPECIAL_PAGE_EXTRACTION_STRATEGY). Any other value is rejected with 400.
The special page was created.
A special page.
The unique identifier of the special page.
The name of the page. Translatable.
Summer SaleThe URL of the page; its pretty URL is generated from it. Unique across special pages. Turkish characters are not accepted.
/summer-sale/The storefront template used to render the page.
URL of the desktop banner image. Translatable.
URL of the mobile banner image. Translatable.
The link the banner points to. Translatable.
The identifier of the product collection whose products the page lists.
12The text shown with the banner. Translatable.
Whether the page is active. Inactive pages have no pretty URL. Deleted pages are inactive.
When the page was created.
When the page was last modified.
Embed code of a video shown on the page. Translatable.
The product extraction strategy of the page, returned as its full value. null means the site-wide default (SPECIAL_PAGE_EXTRACTION_STRATEGY) is used. See Product Extraction Strategy in the Special Pages section.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The request is well-formed but violates a business rule — the url is already used by another special page or pretty URL (special_page_200), or a language-specific URL was sent for the default language (special_page_100). See the SpecialPageBusinessError schema.
POST /api/v1/remote/1/special_pages/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 281
{
"name": "Summer Sale",
"url": "/summer-sale/",
"product_collection": 12,
"is_active": true,
"extraction_strategy": "listable_first",
"banner_url": "/summer-sale/",
"banner_description": "Up to 50% off selected items.",
"specialpageprettyurl_set": [
{
"language": "en-us",
"url": "/en/summer-sale/"
}
]
}{
"pk": 1,
"name": "Summer Sale",
"url": "/summer-sale/",
"template": null,
"banner": null,
"banner_mobile": null,
"banner_url": null,
"product_collection": 12,
"banner_description": null,
"is_active": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"video_embedded_code": null,
"specialpageprettyurl_set": [
{
"pk": 1,
"url": "/en/summer-sale/",
"language": "en-us"
}
],
"pretty_url": {
"pk": 1,
"new_path": "/summer-sale/",
"old_path": "/special-page/42/",
"parent": null,
"language": "tr-tr",
"func_module": null,
"func_name": null,
"func_initkwargs": {},
"args": [
"text"
],
"kwargs": {
"special_page_id": 42
},
"query_params": {},
"viewname": "special-page-detail",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"prettyurl_set": [
{
"pk": 1,
"new_path": "text",
"language": "text"
}
]
},
"extraction_strategy": "omnishop.search.strategies.DefaultProductExtractionStrategy"
}Last updated
Was this helpful?

