Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Fields

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

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Request

Headers

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

Route

PUT /v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f

Body

{
  "name": "New Organization Name",
  "quota_definition_guid": "23f67a1e-2a1d-4e9e-a5bd-7c9cbb055ccd"
}

cURL

curl "https://api.[your-domain.com]/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "23f67a1e-2a1d-4e9e-a5bd-7c9cbb055ccd"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTh9.YKGbcOEqAzgphaEkruw5pTuzmB0u1mxcWqwHUv1a6EE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1cfad1d9-e9f9-4b9f-995c-f49f5af1b82c
Content-Length: 1340
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "eff9fcc0-1db3-48ae-ad74-f17a8dd4260f",
    "url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f",
    "created_at": "2014-11-24T19:32:38+00:00",
    "updated_at": "2014-11-24T19:32:38+00:00"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "23f67a1e-2a1d-4e9e-a5bd-7c9cbb055ccd",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/23f67a1e-2a1d-4e9e-a5bd-7c9cbb055ccd",
    "spaces_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/spaces",
    "domains_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/domains",
    "private_domains_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/private_domains",
    "users_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/users",
    "managers_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/managers",
    "billing_managers_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/billing_managers",
    "auditors_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/auditors",
    "app_events_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/app_events",
    "space_quota_definitions_url": "/v2/organizations/eff9fcc0-1db3-48ae-ad74-f17a8dd4260f/space_quota_definitions"
  }
}