Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378

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": "91634efe-8664-41e1-80b5-e43f27877fd2"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "91634efe-8664-41e1-80b5-e43f27877fd2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.uLpYfU11ypHUWTXJu6fMkcZ7TQixqn9JGxHNLNTgEz4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dd955468-137c-4be5-a8dd-81e3e259d378",
    "url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378",
    "created_at": "2015-10-15T23:52:53Z",
    "updated_at": "2015-10-15T23:52:53Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "91634efe-8664-41e1-80b5-e43f27877fd2",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/91634efe-8664-41e1-80b5-e43f27877fd2",
    "spaces_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/spaces",
    "domains_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/domains",
    "private_domains_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/private_domains",
    "users_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/users",
    "managers_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/managers",
    "billing_managers_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/billing_managers",
    "auditors_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/auditors",
    "app_events_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/app_events",
    "space_quota_definitions_url": "/v2/organizations/dd955468-137c-4be5-a8dd-81e3e259d378/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5bb2ddc9-1e7f-42c5-8fb3-4dc4b1836d84
Content-Length: 1330
X-Content-Type-Options: nosniff