Creating an Organization
POST /v2/organizations/
Request
Route
POST /v2/organizations
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": "my-org-name",
"quota_definition_guid": "43137718-df04-4726-b6e5-7441f73d7673"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations" -d '{
"name": "my-org-name",
"quota_definition_guid": "43137718-df04-4726-b6e5-7441f73d7673"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjB9.wnGP5J98EkzY_LBeBgFUEG0Nmva99QDUzU99kz77NpY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5da18459-8c7b-4fd0-9ae1-e6f5806453ce",
"url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce",
"created_at": "2015-06-04T00:05:20Z",
"updated_at": null
},
"entity": {
"name": "my-org-name",
"billing_enabled": false,
"quota_definition_guid": "43137718-df04-4726-b6e5-7441f73d7673",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/43137718-df04-4726-b6e5-7441f73d7673",
"spaces_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/spaces",
"domains_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/domains",
"private_domains_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/private_domains",
"users_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/users",
"managers_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/managers",
"billing_managers_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/billing_managers",
"auditors_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/auditors",
"app_events_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/app_events",
"space_quota_definitions_url": "/v2/organizations/5da18459-8c7b-4fd0-9ae1-e6f5806453ce/space_quota_definitions"
}
}
Headers