Update an Organization
PUT /v2/organizations/:guid
Request
Route
PUT /v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3
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": "69dbc8e0-9abd-47fa-a394-7dd3d222ad6d"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3" -d '{
"name": "New Organization Name",
"quota_definition_guid": "69dbc8e0-9abd-47fa-a394-7dd3d222ad6d"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI4fQ.Y3iZhGb-WE0PMV4q3oDCbbq0623kNekF3Yjj-qbiHOg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "26d2b265-b1f6-432e-90b4-3213dd509be3",
"url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3",
"created_at": "2015-09-11T18:38:48Z",
"updated_at": "2015-09-11T18:38:48Z"
},
"entity": {
"name": "New Organization Name",
"billing_enabled": false,
"quota_definition_guid": "69dbc8e0-9abd-47fa-a394-7dd3d222ad6d",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/69dbc8e0-9abd-47fa-a394-7dd3d222ad6d",
"spaces_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/spaces",
"domains_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/domains",
"private_domains_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/private_domains",
"users_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/users",
"managers_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/managers",
"billing_managers_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/billing_managers",
"auditors_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/auditors",
"app_events_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/app_events",
"space_quota_definitions_url": "/v2/organizations/26d2b265-b1f6-432e-90b4-3213dd509be3/space_quota_definitions"
}
}
Headers