Update an Organization
PUT /v2/organizations/:guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name of the organization
|
|
|
|
status
|
Status of the organization
|
|
|
|
quota_definition_guid
|
The guid of quota to associate with this organization
|
|
|
|
billing_enabled
|
If billing is enabled for this organization
|
|
|
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Request
Headers
Route
PUT /v2/organizations/140979f8-20de-437e-a636-471df8bb826e
Body
{
"name": "New Organization Name",
"quota_definition_guid": "8c9404f2-dadb-4ec4-894e-ed457faa02df"
}
cURL
curl "https://api.[your-domain.com]/v2/organizations/140979f8-20de-437e-a636-471df8bb826e" -d '{
"name": "New Organization Name",
"quota_definition_guid": "8c9404f2-dadb-4ec4-894e-ed457faa02df"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODZ9.sbOL4Fc9Bet9k-x-KRtxiF4K3XoDEuYunNAqKMPxg24" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "140979f8-20de-437e-a636-471df8bb826e",
"url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e",
"created_at": "2015-01-27T19:14:45Z",
"updated_at": "2015-01-27T19:14:45Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "8c9404f2-dadb-4ec4-894e-ed457faa02df",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/8c9404f2-dadb-4ec4-894e-ed457faa02df",
"spaces_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/spaces",
"domains_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/domains",
"private_domains_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/private_domains",
"users_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/users",
"managers_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/managers",
"billing_managers_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/billing_managers",
"auditors_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/auditors",
"app_events_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/app_events",
"space_quota_definitions_url": "/v2/organizations/140979f8-20de-437e-a636-471df8bb826e/space_quota_definitions"
}
}