Create a Private Domain owned by the given Organization
POST /v2/private_domains
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the domain.
|
|
|
|
name
|
The name of the domain.
|
|
|
- example.com
- foo.example.com
|
owning_organization_guid
|
The organization that owns the domain. If not specified, the domain is shared.
|
|
|
|
Request
Headers
Route
POST /v2/private_domains
Body
{
"name": "exmaple.com",
"owning_organization_guid": "f45155ec-434f-48dc-a078-63728c648851"
}
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "f45155ec-434f-48dc-a078-63728c648851"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg2Mn0.8hig4_BVR424SG448qrYWUyOI9BF36cIorSdgFVQ0aE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "c6f65e35-51a1-4e84-9517-f4ca702a9399",
"url": "/v2/private_domains/c6f65e35-51a1-4e84-9517-f4ca702a9399",
"created_at": "2015-01-27T19:14:22Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "f45155ec-434f-48dc-a078-63728c648851",
"owning_organization_url": "/v2/organizations/f45155ec-434f-48dc-a078-63728c648851"
}
}