Create a new 301 redirect

Creates a new 301 redirect.

post/redirects

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/redirects
  • Auth
    HTTP basic

Request body

oldPathstring required

The old URL path to redirect from (must start with '/').

newPathstring required

The new URL path to redirect to (must start with '/').

Response

301 redirect created successfully.

idinteger

Unique identifier for the redirect.

oldPathstring

The old URL path to redirect from (must start with '/').

newPathstring

The new URL path to redirect to (must start with '/').

createdAtstring date-time

Timestamp when the redirect was created.

Changes

No recorded changes to this operation across all 1 revision of this API.