Replace recommendation page
🔐 This endpoint requires HTTP authentication (either Basic or Bearer). For authenticating with Bearer token, required scopes are: recommendations(w).
Beta: This endpoint is in beta and may change. It is currently available to a small group of users. To request access, contact your Customer Success Manager.
Add or replace the page configured under page_id, and return it. Every field of the page is replaced: display_name, page_type and pods are required, pods replaces the complete ordered list, and a metadata_json setting left out of the body is restored to its default rather than kept. Answers 200 whether the page was created or replaced.
Answers 404 if a pod in pods is not configured for this key and section, and 400 if pods repeats a pod or lists more pods than the page limit. pods may be empty.
Request
- Base URLhttps://ac.cnstrc.com
- URLhttps://ac.cnstrc.com/v1/recommendation_pages/{page_id}
- Auth
- HTTP basic
- or HTTP bearer
Path parameters
Query parameters
The key of the index to use.
The section of the index to use. Defaults to Products.
The ID of the client and version that the request is coming from, such as cio-js-2.90.
Request body
Example request
{
"page_id": "pdp_b2c",
"display_name": "PDP - B2C",
"pods": [
{
"pod_id": "similar_items"
}
]
}Response
OK
Example response
{
"page_id": "pdp_b2c",
"display_name": "PDP - B2C",
"pods": [
{
"pod_id": "similar_items"
}
],
"created_at": "2021-01-01T00:00:00",
"updated_at": "2021-02-01T00:00:00"
}Changes
No recorded changes to this operation across all 1 revision of this API.