Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1

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": "b89cba8f-e3d9-4fc2-8af7-ba70435dbe3f"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "b89cba8f-e3d9-4fc2-8af7-ba70435dbe3f"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjZ9.Iggk1CvDaZ7kndjwYExAZzW6obD1kDWPb9uKVHIxEMw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "eddace31-728d-4680-b32e-4c5b56125ae1",
    "url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1",
    "created_at": "2015-03-03T00:51:06Z",
    "updated_at": "2015-03-03T00:51:06Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "b89cba8f-e3d9-4fc2-8af7-ba70435dbe3f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b89cba8f-e3d9-4fc2-8af7-ba70435dbe3f",
    "spaces_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/spaces",
    "domains_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/domains",
    "private_domains_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/private_domains",
    "users_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/users",
    "managers_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/managers",
    "billing_managers_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/billing_managers",
    "auditors_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/auditors",
    "app_events_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/app_events",
    "space_quota_definitions_url": "/v2/organizations/eddace31-728d-4680-b32e-4c5b56125ae1/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d09e25ba-1305-487d-af99-da188c67d082
Content-Length: 1330
X-Content-Type-Options: nosniff