Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408
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
|
|
|
|
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
|
|
|
|
{
"name": "New Organization Name",
"quota_definition_guid": "fd108575-7cc0-4664-a34e-4db42758005d"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408" -d '{
"name": "New Organization Name",
"quota_definition_guid": "fd108575-7cc0-4664-a34e-4db42758005d"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.8t286_0tzi0lVY04DGPV6xddOEWBDZKPixdlW1o0IuE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4184c879-697c-4f30-9806-3aee4cbf8408",
"url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408",
"created_at": "2015-03-05T19:15:44Z",
"updated_at": "2015-03-05T19:15:44Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "fd108575-7cc0-4664-a34e-4db42758005d",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/fd108575-7cc0-4664-a34e-4db42758005d",
"spaces_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/spaces",
"domains_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/domains",
"private_domains_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/private_domains",
"users_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/users",
"managers_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/managers",
"billing_managers_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/billing_managers",
"auditors_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/auditors",
"app_events_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/app_events",
"space_quota_definitions_url": "/v2/organizations/4184c879-697c-4f30-9806-3aee4cbf8408/space_quota_definitions"
}
}
Headers