Redirect
Create a redirect
post/admin/redirects.json
Request
- Base URLhttps://shop-name.onshopbase.com
- AuthAPI key in header APP_ACCESS_TOKEN
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"redirect": {
"from_url": "/products/all",
"id": 304339089,
"to_url": "/products-all"
}
}Response
OK
Example response
{
"redirects": [
{
"from_url": "/products.php",
"id": 304339089,
"to_url": "/products"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.