Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed

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": "7df44b58-1834-486f-aed8-d5d97126e603"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOSIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.gTaDgCw-OYOcdz7_6P83FyHGo6nWZ_nOrR1T0LgkiGU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "7df44b58-1834-486f-aed8-d5d97126e603"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOSIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.gTaDgCw-OYOcdz7_6P83FyHGo6nWZ_nOrR1T0LgkiGU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "31a539be-dbfd-4db6-aec1-6565ebe975ed",
    "url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed",
    "created_at": "2015-07-27T22:43:11Z",
    "updated_at": "2015-07-27T22:43:11Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "7df44b58-1834-486f-aed8-d5d97126e603",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7df44b58-1834-486f-aed8-d5d97126e603",
    "spaces_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/spaces",
    "domains_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/domains",
    "private_domains_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/private_domains",
    "users_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/users",
    "managers_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/managers",
    "billing_managers_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/billing_managers",
    "auditors_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/auditors",
    "app_events_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/app_events",
    "space_quota_definitions_url": "/v2/organizations/31a539be-dbfd-4db6-aec1-6565ebe975ed/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7be83797-9d1a-4ddc-b23f-a313e8fb81e2
Content-Length: 1330
X-Content-Type-Options: nosniff