Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523
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-26faafd9-f7df-46f2-9494-e2343e45f74b
|
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/1d591e76-901e-4684-ba10-d5a2d3c07523" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NCIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.bcmc2NSUQU-PNoYkkrwze50clgYz04c23SlRpWi-bhA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1d591e76-901e-4684-ba10-d5a2d3c07523",
"url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523",
"created_at": "2016-03-14T22:30:49Z",
"updated_at": "2016-03-14T22:30:49Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "194f0498-6210-4a4f-abab-2a65af9521b0",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/194f0498-6210-4a4f-abab-2a65af9521b0",
"developers_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/developers",
"managers_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/managers",
"auditors_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/auditors",
"apps_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/apps",
"routes_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/routes",
"domains_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/domains",
"service_instances_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/service_instances",
"app_events_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/app_events",
"events_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/events",
"security_groups_url": "/v2/spaces/1d591e76-901e-4684-ba10-d5a2d3c07523/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
25
|
guid
|
a343d8fd-b181-4cf4-a8a9-7e2e8670fe94
|
created_at
|
2016-03-14 22:30:49 UTC
|
updated_at
|
|
timestamp
|
2016-03-14 22:30:49 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-374
|
actor_type
|
user
|
actee
|
1d591e76-901e-4684-ba10-d5a2d3c07523
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
|
organization_guid
|
194f0498-6210-4a4f-abab-2a65af9521b0
|
space_guid
|
1d591e76-901e-4684-ba10-d5a2d3c07523
|
actor_name
|
email-271@somedomain.com
|
actee_name
|
New Space Name
|