Skip to main content
POST
/
v1
/
domains
/
{id}
/
set-redirect
Redirect a domain
curl --request POST \
  --url https://api.iran.liara.ir/v1/domains/{id}/set-redirect \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "redirectStatus": 123,
  "redirectTo": "<string>"
}
'
This response has no body data.

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

id
string
required

The id of your domain

Body

application/json

The domain of your app

redirectStatus
number
required

302 or 301

redirectTo
string
required

Response