Create a redirect

Creates a new URL redirect. Provide `sourcePath`, `targetUrl`, `statusCode` (301, 302, 307, 308), and optional `isRegex` flag for pattern matching.

Required permissions
redirects.create
POST/redirects
Base URLhttps://api.lynkow.com/v1

Request bodyrequired

  • notestring

    Max 500 characters

  • isRegexboolean

    Boolean

  • isActiveboolean

    Boolean

  • sourcePathstringrequired

    Required. 1-2048 characters

  • statusCodeenum

    One of: 301, 302, 307, 308

    One of: 301302307308

  • targetPathstringrequired

    Required. 1-2048 characters

  • preserveQueryStringboolean

    Boolean

Feedback

Was this page helpful?