Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0
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-3143dc5c-11b9-4f0d-af7e-b8c2a1a0d9c3
|
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/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtNjVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.a-rN3HK3omqtlLZu8wDDbfVX51gN89RxOwgfSQGAGyo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "423fc98c-0f9a-45d8-8c82-52e2d73ba1e0",
"url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0",
"created_at": "2015-05-07T23:37:10Z",
"updated_at": "2015-05-07T23:37:10Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "3b937a6d-8af1-4499-9e6d-aa40382a63db",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/3b937a6d-8af1-4499-9e6d-aa40382a63db",
"developers_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/developers",
"managers_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/managers",
"auditors_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/auditors",
"apps_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/apps",
"routes_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/routes",
"domains_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/domains",
"service_instances_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/service_instances",
"app_events_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/app_events",
"events_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/events",
"security_groups_url": "/v2/spaces/423fc98c-0f9a-45d8-8c82-52e2d73ba1e0/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
147
|
guid
|
66d07a89-e110-4b92-ae23-aacbe86623b6
|
created_at
|
2015-05-07 23:37:10 UTC
|
updated_at
|
|
timestamp
|
2015-05-07 23:37:10 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-116
|
actor_type
|
user
|
actee
|
423fc98c-0f9a-45d8-8c82-52e2d73ba1e0
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
150
|
organization_guid
|
3b937a6d-8af1-4499-9e6d-aa40382a63db
|
space_guid
|
423fc98c-0f9a-45d8-8c82-52e2d73ba1e0
|
actor_name
|
email-65@somedomain.com
|
actee_name
|
New Space Name
|