Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4

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": "01d80f56-8b39-4ce5-a908-1c8c034ec18c"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtNjBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5N30.anIzM-joigRhiCFumFWolZslENz-O8AdAv0ONrhlEfg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "01d80f56-8b39-4ce5-a908-1c8c034ec18c"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtNjBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5N30.anIzM-joigRhiCFumFWolZslENz-O8AdAv0ONrhlEfg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7530d010-c052-4e23-b84e-91640ca60ab4",
    "url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4",
    "created_at": "2015-08-31T21:49:57Z",
    "updated_at": "2015-08-31T21:49:57Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "01d80f56-8b39-4ce5-a908-1c8c034ec18c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/01d80f56-8b39-4ce5-a908-1c8c034ec18c",
    "spaces_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/spaces",
    "domains_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/domains",
    "private_domains_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/private_domains",
    "users_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/users",
    "managers_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/managers",
    "billing_managers_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/billing_managers",
    "auditors_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/auditors",
    "app_events_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/app_events",
    "space_quota_definitions_url": "/v2/organizations/7530d010-c052-4e23-b84e-91640ca60ab4/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ee75d257-e8be-4afd-b88a-354e395a0ecd
Content-Length: 1330
X-Content-Type-Options: nosniff