Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6
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": "580a2aeb-728e-4e93-8db0-b175e898fef5"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6" -d '{
"name": "New Organization Name",
"quota_definition_guid": "580a2aeb-728e-4e93-8db0-b175e898fef5"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk4fQ.d8m49cP7Rypw8mrwRkZxSbFE_P3OqRJztWZEajaXgNU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "90af8609-38e1-48c0-a564-b8f26d4771b6",
"url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6",
"created_at": "2015-10-13T17:31:38Z",
"updated_at": "2015-10-13T17:31:38Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "580a2aeb-728e-4e93-8db0-b175e898fef5",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/580a2aeb-728e-4e93-8db0-b175e898fef5",
"spaces_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/spaces",
"domains_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/domains",
"private_domains_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/private_domains",
"users_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/users",
"managers_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/managers",
"billing_managers_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/billing_managers",
"auditors_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/auditors",
"app_events_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/app_events",
"space_quota_definitions_url": "/v2/organizations/90af8609-38e1-48c0-a564-b8f26d4771b6/space_quota_definitions"
}
}
Headers