Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d

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": "b9edb005-8f93-40fa-9c01-f0dd188edef3"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "b9edb005-8f93-40fa-9c01-f0dd188edef3"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.SyAnEc2tHeha9OE37W0X01KlC9tl4xlUQhvU79vZMsw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2328f816-8a84-438c-b278-dfd8c1b2c04d",
    "url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d",
    "created_at": "2015-08-06T00:36:36Z",
    "updated_at": "2015-08-06T00:36:36Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "b9edb005-8f93-40fa-9c01-f0dd188edef3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b9edb005-8f93-40fa-9c01-f0dd188edef3",
    "spaces_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/spaces",
    "domains_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/domains",
    "private_domains_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/private_domains",
    "users_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/users",
    "managers_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/managers",
    "billing_managers_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/billing_managers",
    "auditors_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/auditors",
    "app_events_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/app_events",
    "space_quota_definitions_url": "/v2/organizations/2328f816-8a84-438c-b278-dfd8c1b2c04d/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 296a82be-7551-4d3c-8175-2d242256eeef
Content-Length: 1330
X-Content-Type-Options: nosniff