Partially update a special page
Updates one or more fields of a special page. Only the fields included in the request body are changed; no field is required.
Sending
{"is_active": false}deactivates the page and removes its pretty URL — this is also the step required before a page with a pretty URL can be deleted. Sending{"is_active": true}generates a new pretty URL.Changing
urlupdates the path of the pretty URL.Sending
nullforbannerorbanner_mobileremoves the image.Translatable fields are written in the language selected for the request (
IGNORE_ACCEPT_LANGUAGE_HEADER).
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the special page.
The body of a partial-update request sent as JSON. All fields are optional; only the fields sent are changed.
Changing the URL also updates the path of the pretty URL. The URL of another special page or the path of another pretty URL is rejected with 406 (special_page_200).
Send null to remove the desktop banner image.
Send null to remove the mobile banner image.
false deactivates the page and removes its pretty URL; true reactivates it and generates a new pretty URL.
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 updated special page.
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.
No special page exists with the given identifier.
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.
PATCH /api/v1/remote/1/special_pages/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"is_active": false
}{
"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?

