Create Environment Domain
POST
/v1/environments/{id}/domainsAdd a domain to an environment.
Request
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"name": "domain.com"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
relationships
object
required
Example
{
"data": {
"id": 2575,
"type": "domain",
"attributes": {
"boltId": 9002,
"environmentId": 1785,
"name": "domain.com",
"sslId": null,
"sslType": null,
"deletable": true,
"tags": []
},
"relationships": {
"certificates": [],
"environment": {
"data": {
"id": 1785,
"attributes": {
"title": "Test"
}
}
}
}
}
}
Last modified: 6 months ago