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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.JT8O1cVweV-CzR75gvC41u1gbHoThLaNcymko2q7xA0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404

Body

{
  "name": "New Organization Name",
  "quota_definition_guid": "26a1de59-c176-451f-ba57-8f96903c87af"
}

cURL

curl "https://api.[your-domain.com]/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "26a1de59-c176-451f-ba57-8f96903c87af"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.JT8O1cVweV-CzR75gvC41u1gbHoThLaNcymko2q7xA0" \
	-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: ada2e75f-0c76-4c13-8cf2-a6e03848caef
Content-Length: 1340
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e58213f9-76c0-4f45-8aee-43157b8b3404",
    "url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404",
    "created_at": "2014-11-05T01:02:21+00:00",
    "updated_at": "2014-11-05T01:02:21+00:00"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "26a1de59-c176-451f-ba57-8f96903c87af",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/26a1de59-c176-451f-ba57-8f96903c87af",
    "spaces_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/spaces",
    "domains_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/domains",
    "private_domains_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/private_domains",
    "users_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/users",
    "managers_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/managers",
    "billing_managers_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/billing_managers",
    "auditors_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/auditors",
    "app_events_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/app_events",
    "space_quota_definitions_url": "/v2/organizations/e58213f9-76c0-4f45-8aee-43157b8b3404/space_quota_definitions"
  }
}