Path parameters

idstringrequired

The ID of the redirect to update.

Body parameters

fromstring

The from url of the redirect.

toarray

The to url of the redirect.

Response

idstring

The unique identifier for this redirect.

objectstring

This will always contain redirect for this endpoint.

fromstring

The from url of this redirect.

tostring

The to url of this redirect.

created_atstring

The redirect's created datetime.

updated_atstring

The redirect's updated datetime.

deleted_atstring | null

The redirect's deleted datetime.

import Blutui from 'blutui'

const blutui = new Blutui('ey....')

blutui
  .project('one')
  .admin.redirects.update('9a5b0b29-a4f8-4df6-bf53-f282af312686', {
    from: '/updated',
  })
Response
{
  "id": "9a5b0b29-a4f8-4df6-bf53-f282af312686",
  "object": "redirect",
  "from": "/old",
  "to": "/new",
  "created_at": "2025-01-23T14:03:00+11:00",
  "updated_at": "2025-01-23T14:03:00+11:00"
}

Was this helpful?