Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb

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": "e28f7866-a7ee-46be-aacc-4ea086b9d37e"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "e28f7866-a7ee-46be-aacc-4ea086b9d37e"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQyfQ.AWFGXJYCBi1lQFfz5W5fbhyRnzyOoke9v2GUaR4OwxQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ca978569-d930-4479-a419-ae05e3ae4cbb",
    "url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb",
    "created_at": "2015-03-20T18:27:22Z",
    "updated_at": "2015-03-20T18:27:22Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "e28f7866-a7ee-46be-aacc-4ea086b9d37e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e28f7866-a7ee-46be-aacc-4ea086b9d37e",
    "spaces_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/spaces",
    "domains_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/domains",
    "private_domains_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/private_domains",
    "users_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/users",
    "managers_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/managers",
    "billing_managers_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/billing_managers",
    "auditors_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/auditors",
    "app_events_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/app_events",
    "space_quota_definitions_url": "/v2/organizations/ca978569-d930-4479-a419-ae05e3ae4cbb/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 390f4e49-87a8-45f1-b1ea-0fb867fa958d
Content-Length: 1330
X-Content-Type-Options: nosniff