Redirects

Update a redirect rule

Changed on

Updates the specified redirect by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

patch/redirects/{id}

Request

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

Path parameters

idstring required

The redirect ID returned by create or list endpoints.

Request body

fromPathstring

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

toPathstring

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

    • info

      added the optional property / to the response with the status