跳到主要内容
版本:202201

创建 URL 重定向

POST 

/openapi/2022-01/redirects

使用提供的详情创建新的 URL 重定向规则。

请求

请求体

    from_urlstring必填

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

    redirect_urlstring必填

    Redirected URL, for example: /collections/test1567

    statusstring必填

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

    默认值: open

响应

200

数据结构
    idinteger
    默认值: 0
    示例: 373043233132924740
    store_idinteger
    默认值: 0
    示例: 633130
    statusstring
    示例: open
    from_urlstring
    示例: /collections/hot-selling
    redirect_urlstring
    示例: /collections/test1567