Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b
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": "6e6802fd-36ae-4569-bc40-796877f85c23"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b" -d '{
"name": "New Organization Name",
"quota_definition_guid": "6e6802fd-36ae-4569-bc40-796877f85c23"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTF9.W5RO_6wYB22r5WA3844ezU517IeezZjOW-pWvdbkit0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "68ca4999-7c55-4db9-9627-4e9b4c1f811b",
"url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b",
"created_at": "2015-04-15T00:55:51Z",
"updated_at": "2015-04-15T00:55:51Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "6e6802fd-36ae-4569-bc40-796877f85c23",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/6e6802fd-36ae-4569-bc40-796877f85c23",
"spaces_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/spaces",
"domains_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/domains",
"private_domains_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/private_domains",
"users_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/users",
"managers_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/managers",
"billing_managers_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/billing_managers",
"auditors_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/auditors",
"app_events_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/app_events",
"space_quota_definitions_url": "/v2/organizations/68ca4999-7c55-4db9-9627-4e9b4c1f811b/space_quota_definitions"
}
}
Headers