Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe

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": "ea29fe52-fd42-49a6-a896-24ac8ff47c16"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "ea29fe52-fd42-49a6-a896-24ac8ff47c16"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNiIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODV9.OrL_UAdOtX1N4rhp_36DRBZ5W5DIBR_VjXjiBkiRyfQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe",
    "url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe",
    "created_at": "2016-01-19T19:41:25Z",
    "updated_at": "2016-01-19T19:41:25Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "ea29fe52-fd42-49a6-a896-24ac8ff47c16",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ea29fe52-fd42-49a6-a896-24ac8ff47c16",
    "spaces_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/spaces",
    "domains_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/domains",
    "private_domains_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/private_domains",
    "users_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/users",
    "managers_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/managers",
    "billing_managers_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/billing_managers",
    "auditors_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/auditors",
    "app_events_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/app_events",
    "space_quota_definitions_url": "/v2/organizations/efe1b90b-84cf-4e1e-8e6d-1df2d5b070fe/space_quota_definitions"
  }
}

Headers

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