Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d

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": "170553f9-b87a-4c59-b0c9-857863fdca85"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.OThL-y8Q35Z0i-egg3BpO4chpEFT9plLzKrMkefEGFc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "170553f9-b87a-4c59-b0c9-857863fdca85"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.OThL-y8Q35Z0i-egg3BpO4chpEFT9plLzKrMkefEGFc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "79df012d-569f-4a50-8875-41b55846ef6d",
    "url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d",
    "created_at": "2015-07-06T23:23:19Z",
    "updated_at": "2015-07-06T23:23:19Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "170553f9-b87a-4c59-b0c9-857863fdca85",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/170553f9-b87a-4c59-b0c9-857863fdca85",
    "spaces_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/spaces",
    "domains_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/domains",
    "private_domains_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/private_domains",
    "users_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/users",
    "managers_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/managers",
    "billing_managers_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/billing_managers",
    "auditors_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/auditors",
    "app_events_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/app_events",
    "space_quota_definitions_url": "/v2/organizations/79df012d-569f-4a50-8875-41b55846ef6d/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 91700696-9f64-4dbd-adf5-d766e5670efb
Content-Length: 1330
X-Content-Type-Options: nosniff