Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8
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": "d20eeda5-5bf8-42eb-afec-6ed6edacbd96"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8" -d '{
"name": "New Organization Name",
"quota_definition_guid": "d20eeda5-5bf8-42eb-afec-6ed6edacbd96"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDB9.1EHo0GQ_aPMEKkgpNkbzDFbfijGT15Ju1mNU3Twofrc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a1c1dda8-04fc-448a-a44f-99009b5ba7f8",
"url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8",
"created_at": "2016-02-19T02:04:00Z",
"updated_at": "2016-02-19T02:04:00Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "d20eeda5-5bf8-42eb-afec-6ed6edacbd96",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/d20eeda5-5bf8-42eb-afec-6ed6edacbd96",
"spaces_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/spaces",
"domains_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/domains",
"private_domains_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/private_domains",
"users_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/users",
"managers_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/managers",
"billing_managers_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/billing_managers",
"auditors_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/auditors",
"app_events_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/app_events",
"space_quota_definitions_url": "/v2/organizations/a1c1dda8-04fc-448a-a44f-99009b5ba7f8/space_quota_definitions"
}
}
Headers