Authorization: Bearer ********************
{
"data": {
"attributes": {
"name": "domain.com"
}
}
}
curl --location --request POST 'https://api.servebolt.io/v1/environments//domains' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"attributes": {
"name": "domain.com"
}
}
}'
{
"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"
}
}
}
}
}
}