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": "a7196e89-e2a9-472e-8930-56bdedbf0308"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations" -d '{
"name": "my-org-name",
"quota_definition_guid": "a7196e89-e2a9-472e-8930-56bdedbf0308"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NyIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTF9.LIBm3MBqT9lJY-1y5UJqy9NQJo3eMKKiIFCmGPpOpgY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "7cc7b460-a626-4189-8c93-726373e7a492",
"url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492",
"created_at": "2015-04-15T00:55:51Z",
"updated_at": null
},
"entity": {
"name": "my-org-name",
"billing_enabled": false,
"quota_definition_guid": "a7196e89-e2a9-472e-8930-56bdedbf0308",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/a7196e89-e2a9-472e-8930-56bdedbf0308",
"spaces_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/spaces",
"domains_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/domains",
"private_domains_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/private_domains",
"users_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/users",
"managers_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/managers",
"billing_managers_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/billing_managers",
"auditors_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/auditors",
"app_events_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/app_events",
"space_quota_definitions_url": "/v2/organizations/7cc7b460-a626-4189-8c93-726373e7a492/space_quota_definitions"
}
}
Headers