Redirects

Create a redirect rule

Changed on

Creates a redirect. The request is idempotent when an Idempotency-Key header is supplied.

post/redirects

Request

  • Base URL: https://api.cavuno.com/v1
  • URL: https://api.cavuno.com/v1/redirects
  • Auth: HTTP bearer

Request body

fromPathstring required

Source path to match, for example /old-careers.

toPathstring required

Destination path or URL, for example /jobs.

Response

Successful response.

idstring required

Unique identifier for the redirect.

object'redirect' required

String representing the object's type. Objects of the same type share the same value.

fromPathstring required

Source path matched by this redirect.

toPathstring required

Destination path or URL.

createdAtstring required

Time at which the redirect was created. ISO 8601 datetime.

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status