Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f
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": "a418acdd-d295-4430-a511-983fb92df59a"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f" -d '{
"name": "New Organization Name",
"quota_definition_guid": "a418acdd-d295-4430-a511-983fb92df59a"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDV9.qFgcd-Epu9u5ktI22VUnnmA2dX_W3L7Gc-wwJKDiAvA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4d13edc7-2c26-41b4-8e89-622aa160da0f",
"url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f",
"created_at": "2016-03-14T22:30:45Z",
"updated_at": "2016-03-14T22:30:45Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "a418acdd-d295-4430-a511-983fb92df59a",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/a418acdd-d295-4430-a511-983fb92df59a",
"spaces_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/spaces",
"domains_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/domains",
"private_domains_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/private_domains",
"users_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/users",
"managers_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/managers",
"billing_managers_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/billing_managers",
"auditors_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/auditors",
"app_events_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/app_events",
"space_quota_definitions_url": "/v2/organizations/4d13edc7-2c26-41b4-8e89-622aa160da0f/space_quota_definitions"
}
}
Headers