Create a Shared Domain
POST /v2/shared_domains
Request
Route
POST /v2/shared_domains
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the domain.
|
|
|
|
router_group_guid
|
The guid of the router group.
|
|
|
|
name
|
The name of the domain.
|
|
|
- example.com
- foo.example.com
|
{
"name": "example.com",
"router_group_guid": "my-random-guid"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/shared_domains" -d '{
"name": "example.com",
"router_group_guid": "my-random-guid"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOCIsImVtYWlsIjoiZW1haWwtMzA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzR9.YTb_xAc6soaIl7DAltFUMsCf_Ep8VVgohh_vxyg76w8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "11b010ec-25d0-4c5c-a2e8-0e8b4009054f",
"url": "/v2/shared_domains/11b010ec-25d0-4c5c-a2e8-0e8b4009054f",
"created_at": "2015-11-13T17:02:54Z",
"updated_at": null
},
"entity": {
"name": "example.com",
"router_group_guid": "my-random-guid"
}
}
Headers