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": "d892cb10-e6f7-4732-8a48-5ceb93faeb6a"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations" -d '{
"name": "my-org-name",
"quota_definition_guid": "d892cb10-e6f7-4732-8a48-5ceb93faeb6a"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4ODU1NjY3fQ.LiwVfE1IeykI3XpQMCZMzKw1RbQu4wGooCnHbBj5NrQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "7122c277-3813-4a57-ba9d-68bdce2d0cb6",
"url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6",
"created_at": "2016-03-17T21:41:07Z",
"updated_at": null
},
"entity": {
"name": "my-org-name",
"billing_enabled": false,
"quota_definition_guid": "d892cb10-e6f7-4732-8a48-5ceb93faeb6a",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/d892cb10-e6f7-4732-8a48-5ceb93faeb6a",
"spaces_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/spaces",
"domains_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/domains",
"private_domains_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/private_domains",
"users_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/users",
"managers_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/managers",
"billing_managers_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/billing_managers",
"auditors_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/auditors",
"app_events_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/app_events",
"space_quota_definitions_url": "/v2/organizations/7122c277-3813-4a57-ba9d-68bdce2d0cb6/space_quota_definitions"
}
}
Headers