Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38

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": "2e5cd743-48df-4f4a-a31d-960994e52d09"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgyfQ.QUZhymg-1UJbp-A-MbhzDQuNrtJd8WfxN3TuskN_U2M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "2e5cd743-48df-4f4a-a31d-960994e52d09"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgyfQ.QUZhymg-1UJbp-A-MbhzDQuNrtJd8WfxN3TuskN_U2M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2f20f867-572d-4ad1-bfdc-8002088fbb38",
    "url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38",
    "created_at": "2015-05-21T01:03:02Z",
    "updated_at": "2015-05-21T01:03:02Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "2e5cd743-48df-4f4a-a31d-960994e52d09",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2e5cd743-48df-4f4a-a31d-960994e52d09",
    "spaces_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/spaces",
    "domains_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/domains",
    "private_domains_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/private_domains",
    "users_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/users",
    "managers_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/managers",
    "billing_managers_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/billing_managers",
    "auditors_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/auditors",
    "app_events_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/app_events",
    "space_quota_definitions_url": "/v2/organizations/2f20f867-572d-4ad1-bfdc-8002088fbb38/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 299ba6d4-3269-44cd-93f0-4a0e102e0da6
Content-Length: 1330
X-Content-Type-Options: nosniff