Admin APIRedirects
Create redirect
POST{handle}.blutui.com/admin/api/redirects
Create a redirect a project.
Body parameters
fromstringrequired
The from url of the redirect.
tostringrequired
The to url of the redirect.
Response
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.redirects.create({
  from: '/about',
  to: '/about-us',
}){
  "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"
}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.
Last updated on