Skip to main content
Version: 202201

Create Redirect

POST 

/openapi/2022-01/redirects

Create a new url redirect with the provided details.

Request

Body

    from_urlstringrequired

    Original URL, for example: /collections/hot-selling

    redirect_urlstringrequired

    Redirected URL, for example: /collections/test1567

    statusstringrequired

    The status of the redirect:
    - open: available
    - close: unavailable

    Default value: open

Responses

200

Schema
    idinteger
    Default value: 0
    Example: 373043233132924740
    store_idinteger
    Default value: 0
    Example: 633130
    statusstring
    Example: open
    from_urlstring
    Example: /collections/hot-selling
    redirect_urlstring
    Example: /collections/test1567