Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da

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": "a8ce0544-6cfa-42f2-9b3e-4da92005e908"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "a8ce0544-6cfa-42f2-9b3e-4da92005e908"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NiIsImVtYWlsIjoiZW1haWwtMjYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjB9.EvJg_ya7lt4YwW_zEOeZlyuv4HoESHzYXJ5eQX70OCw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "72d83626-89ec-44b4-9ec6-eaa67706a5da",
    "url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da",
    "created_at": "2015-06-04T00:05:20Z",
    "updated_at": "2015-06-04T00:05:20Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "a8ce0544-6cfa-42f2-9b3e-4da92005e908",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/a8ce0544-6cfa-42f2-9b3e-4da92005e908",
    "spaces_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/spaces",
    "domains_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/domains",
    "private_domains_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/private_domains",
    "users_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/users",
    "managers_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/managers",
    "billing_managers_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/billing_managers",
    "auditors_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/auditors",
    "app_events_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/app_events",
    "space_quota_definitions_url": "/v2/organizations/72d83626-89ec-44b4-9ec6-eaa67706a5da/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4672f9fc-ab9d-4f64-baad-c6535997f5b5
Content-Length: 1330
X-Content-Type-Options: nosniff