Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7

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": "23fad7b2-d79c-49ec-a6de-39d2b52d90a2"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5MH0.Wanr2q-N1SPADztFm8yqFXmkpVzFgAS94jxqEKG9ZMQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "23fad7b2-d79c-49ec-a6de-39d2b52d90a2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5MH0.Wanr2q-N1SPADztFm8yqFXmkpVzFgAS94jxqEKG9ZMQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "750434be-821f-4326-a608-b7e5a1632bc7",
    "url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7",
    "created_at": "2016-04-22T19:33:10Z",
    "updated_at": "2016-04-22T19:33:10Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "23fad7b2-d79c-49ec-a6de-39d2b52d90a2",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/23fad7b2-d79c-49ec-a6de-39d2b52d90a2",
    "spaces_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/spaces",
    "domains_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/domains",
    "private_domains_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/private_domains",
    "users_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/users",
    "managers_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/managers",
    "billing_managers_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/billing_managers",
    "auditors_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/auditors",
    "app_events_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/app_events",
    "space_quota_definitions_url": "/v2/organizations/750434be-821f-4326-a608-b7e5a1632bc7/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aa6981d7-0fe6-4b92-8e41-dcbcbb80b054
Content-Length: 1330
X-Content-Type-Options: nosniff