Skip to main content
POST
/
v1
/
domains
Create a domain
curl --request POST \
  --url https://api.iran.liara.ir/v1/domains \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "project": "<string>",
  "type": "PROJECT"
}
'
{
  "domain": {
    "_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

The domain of your app

name
string
required
project
string
required
type
string
default:PROJECT
required

Response

Successful operation

domain
object