Admin Marketing: Search & SEO

Create a URL rewrite

Create a URL rewrite

post/marketing/url-rewrites

Request

Request body

entity_type'product' | 'category' | 'cms_page' required
request_pathstring required
target_pathstring required
redirect_type'301' | '302' required
localestring required

Example request

{
  "entity_type": "product",
  "request_path": "old-path",
  "target_path": "new-path",
  "redirect_type": "301",
  "locale": "en"
}

Response

URL rewrite created.

Changes

No recorded changes to this operation across all 8 revisions of this API.