Skip to main content
Version: 202506

Create URL redirect

POST 

/openapi/2025-06/redirects

Create a new url redirect with the provided details.

Request

Bodyrequired

    redirect objectrequired

    The URL redirect to be created

    from_urlstringrequired

    Original URL to be redirected

    redirect_urlstringrequired

    Target URL where the original URL will redirect users

    statusstringrequired

    Status of the redirect: open (available) or close (unavailable)

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    redirect object

    URL redirect

    idint64

    Redirect ID

    store_idint32

    ID of the store where the redirect is created

    statusstring

    Status of the redirect

    from_urlstring

    The original URL specified for redirection

    redirect_urlstring

    The target URL specified for the redirection