Skip to main content
POST
/
projects
/
{projectId}
/
domains
Add a project domain
curl --request POST \
  --url {schemes}://api.upsun.com/projects/{projectId}/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "attributes": {},
  "is_default": true
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required

Body

application/json
name
string
required
attributes
Arbitrary attributes · object

Arbitrary attributes attached to this resource

is_default
boolean

Is this domain default

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response