Home
Version 3
Organizations API

Organizations API

Associate Private Domain with the Organization

PUT /v2/organizations/:guid/private_domains/:private_domain_guid

Request

Route

PUT /v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/private_domains/f6557e31-2f6b-401c-9786-da220b5f2c5e

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU1fQ.uTTcOvxZUtwF6TdoP5kXo12hCeC0N2i0Ghmi5AsL2pY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/private_domains/f6557e31-2f6b-401c-9786-da220b5f2c5e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU1fQ.uTTcOvxZUtwF6TdoP5kXo12hCeC0N2i0Ghmi5AsL2pY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d77db50a-d2fb-4fd2-a34e-9dd69338bd22",
    "url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22",
    "created_at": "2015-03-18T22:52:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-60",
    "billing_enabled": false,
    "quota_definition_guid": "ef371389-f4b4-44bc-96ac-7b2f92ea0d86",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ef371389-f4b4-44bc-96ac-7b2f92ea0d86",
    "spaces_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/spaces",
    "domains_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/domains",
    "private_domains_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/private_domains",
    "users_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/users",
    "managers_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/managers",
    "billing_managers_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/billing_managers",
    "auditors_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/auditors",
    "app_events_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/app_events",
    "space_quota_definitions_url": "/v2/organizations/d77db50a-d2fb-4fd2-a34e-9dd69338bd22/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fc040941-c849-43d4-a7ce-053326c134ce
Content-Length: 1298
X-Content-Type-Options: nosniff