Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242

Parameters

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

Body

Name Description Default Valid Values Example Values
name The name of the organization
  • my-org-name
status Status of the organization
quota_definition_guid The guid of quota to associate with this organization
  • org-quota-def-guid
billing_enabled If billing is enabled for this organization
{
  "name": "New Organization Name",
  "quota_definition_guid": "c446afd8-f91a-4d14-a171-e9ba6b51072b"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.ACOP2PWqVj4pwszw9kzax0t4lr25MMZodUi73-a1xEs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "c446afd8-f91a-4d14-a171-e9ba6b51072b"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.ACOP2PWqVj4pwszw9kzax0t4lr25MMZodUi73-a1xEs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242",
    "url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242",
    "created_at": "2016-04-06T00:17:19Z",
    "updated_at": "2016-04-06T00:17:19Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "c446afd8-f91a-4d14-a171-e9ba6b51072b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c446afd8-f91a-4d14-a171-e9ba6b51072b",
    "spaces_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/spaces",
    "domains_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/domains",
    "private_domains_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/private_domains",
    "users_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/users",
    "managers_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/managers",
    "billing_managers_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/billing_managers",
    "auditors_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/auditors",
    "app_events_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/app_events",
    "space_quota_definitions_url": "/v2/organizations/33a9f3e2-2fda-442d-b9a6-9b2ecfc9f242/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1330
X-Content-Type-Options: nosniff