CMS

Update a redirect

Update a redirect's target, status code, or active flag. site_id scopes the lookup. status_code must be one of 301, 302, 307, 308.

patch/cms/redirects/{id}

Request

  • Base URL: https://next.frase.io/api/v1
  • URL: https://next.frase.io/api/v1/cms/redirects/{id}
  • Auth: API key in header X-API-KEY

Path parameters

idstring uuid required

Redirect ID

Request body

site_idstring uuid required

Required. The site the redirect belongs to.

to_pathstring

New destination path.

status_code301 | 302 | 307 | 308

New HTTP redirect status.

is_activeboolean

Enable or disable the redirect.

Response

Redirect updated

request_idstring

Changes

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