Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name of the space
|
|
|
- development
- demo
- production
|
organization_guid
|
The guid of the associated organization
|
|
|
- guid-12c497b0-a17c-4e75-b409-5b4864de59a8
|
developer_guids
|
The list of the associated developers
|
|
|
|
manager_guids
|
The list of the associated managers
|
|
|
|
auditor_guids
|
The list of the associated auditors
|
|
|
|
domain_guids
|
The list of the associated domains
|
|
|
|
security_group_guids
|
The list of the associated security groups
|
|
|
|
allow_ssh
|
Whether or not Space Developers can enable ssh on apps in the space
|
|
|
|
{
"name": "New Space Name"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.Jtnk_pLyj3kXm-ShtWiLGLn02SPqWbaPTBFEp1tYTDo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "988392fe-51f5-45ec-a969-9441f2662d30",
"url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30",
"created_at": "2015-10-13T17:31:36Z",
"updated_at": "2015-10-13T17:31:36Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "bdaa3934-e128-4533-8eda-4beec89b5418",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/bdaa3934-e128-4533-8eda-4beec89b5418",
"developers_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/developers",
"managers_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/managers",
"auditors_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/auditors",
"apps_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/apps",
"routes_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/routes",
"domains_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/domains",
"service_instances_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/service_instances",
"app_events_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/app_events",
"events_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/events",
"security_groups_url": "/v2/spaces/988392fe-51f5-45ec-a969-9441f2662d30/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
5
|
guid
|
6faafa65-8f4e-4013-924d-e84fc089f0ac
|
created_at
|
2015-10-13 17:31:36 UTC
|
updated_at
|
|
timestamp
|
2015-10-13 17:31:36 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-12
|
actor_type
|
user
|
actee
|
988392fe-51f5-45ec-a969-9441f2662d30
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
|
organization_guid
|
bdaa3934-e128-4533-8eda-4beec89b5418
|
space_guid
|
988392fe-51f5-45ec-a969-9441f2662d30
|
actor_name
|
email-12@somedomain.com
|
actee_name
|
New Space Name
|