Home
Version 3
Organizations API

Organizations API

Update an Organization

PUT /v2/organizations/:guid

Request

Route

PUT /v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d

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": "d146d8ff-5e9d-4160-b3b8-436b497ce9f2"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0Mn0.e-8bzTN7YbPgxbsSyfjf_31RiTxXNbfgFQLJV6Wi5fE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d" -d '{
  "name": "New Organization Name",
  "quota_definition_guid": "d146d8ff-5e9d-4160-b3b8-436b497ce9f2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0Mn0.e-8bzTN7YbPgxbsSyfjf_31RiTxXNbfgFQLJV6Wi5fE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3dbd1b0b-d6b0-4f82-85c0-a7093f17704d",
    "url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d",
    "created_at": "2015-11-13T17:02:21Z",
    "updated_at": "2015-11-13T17:02:21Z"
  },
  "entity": {
    "name": "New Organization Name",
    "billing_enabled": false,
    "quota_definition_guid": "d146d8ff-5e9d-4160-b3b8-436b497ce9f2",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d146d8ff-5e9d-4160-b3b8-436b497ce9f2",
    "spaces_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/spaces",
    "domains_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/domains",
    "private_domains_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/private_domains",
    "users_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/users",
    "managers_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/managers",
    "billing_managers_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/billing_managers",
    "auditors_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/auditors",
    "app_events_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/app_events",
    "space_quota_definitions_url": "/v2/organizations/3dbd1b0b-d6b0-4f82-85c0-a7093f17704d/space_quota_definitions"
  }
}

Headers

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