Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177

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": "449a75f3-c100-444f-a1ff-0d2bdad258dd"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNSIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODZ9.BHalof8BqkAA-gGLt9NGiHcUjHigKxjCW-YB1URF-O0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "449a75f3-c100-444f-a1ff-0d2bdad258dd"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNSIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODZ9.BHalof8BqkAA-gGLt9NGiHcUjHigKxjCW-YB1URF-O0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c3200db6-147a-4d13-a911-93dc8a936177",
    "url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177",
    "created_at": "2015-12-22T18:28:06Z",
    "updated_at": "2015-12-22T18:28:06Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "449a75f3-c100-444f-a1ff-0d2bdad258dd",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/449a75f3-c100-444f-a1ff-0d2bdad258dd",
    "spaces_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/spaces",
    "domains_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/domains",
    "private_domains_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/private_domains",
    "users_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/users",
    "managers_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/managers",
    "billing_managers_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/billing_managers",
    "auditors_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/auditors",
    "app_events_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/app_events",
    "space_quota_definitions_url": "/v2/organizations/c3200db6-147a-4d13-a911-93dc8a936177/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1330
X-Content-Type-Options: nosniff