Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae
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": "52ee2889-10e8-4278-ab1f-468073c9b968"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae" -d '{
"name": "New Organization Name",
"quota_definition_guid": "52ee2889-10e8-4278-ab1f-468073c9b968"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MyIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDJ9.VYfDaAlWAsOf1cOh9_fmfAH9JAI6Sy7IWirZk5-QCWU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "439f5e5c-6fc6-441e-962e-0f892a8c50ae",
"url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae",
"created_at": "2015-03-10T23:11:42Z",
"updated_at": "2015-03-10T23:11:42Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "52ee2889-10e8-4278-ab1f-468073c9b968",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/52ee2889-10e8-4278-ab1f-468073c9b968",
"spaces_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/spaces",
"domains_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/domains",
"private_domains_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/private_domains",
"users_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/users",
"managers_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/managers",
"billing_managers_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/billing_managers",
"auditors_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/auditors",
"app_events_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/app_events",
"space_quota_definitions_url": "/v2/organizations/439f5e5c-6fc6-441e-962e-0f892a8c50ae/space_quota_definitions"
}
}
Headers