Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e
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-7c897627-f72e-4a71-a41b-29a66c694491
|
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
|
|
|
|
{
"name": "New Space Name"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk5fQ.ye1n5sv9EsTf1WVh22LVafFeWpQsuRqVV5Fe67sqFDk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "13e4002e-064a-4280-a3a7-2058837aed8e",
"url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e",
"created_at": "2015-04-07T19:11:39Z",
"updated_at": "2015-04-07T19:11:39Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "cbcdfdb1-fa3c-4421-bfe1-72b800b99978",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/cbcdfdb1-fa3c-4421-bfe1-72b800b99978",
"developers_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/developers",
"managers_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/managers",
"auditors_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/auditors",
"apps_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/apps",
"routes_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/routes",
"domains_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/domains",
"service_instances_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/service_instances",
"app_events_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/app_events",
"events_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/events",
"security_groups_url": "/v2/spaces/13e4002e-064a-4280-a3a7-2058837aed8e/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
8
|
guid
|
f8130b4a-0512-4108-898f-9ba5b17a83fa
|
created_at
|
2015-04-07 19:11:39 UTC
|
updated_at
|
|
timestamp
|
2015-04-07 19:11:39 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-47
|
actor_type
|
user
|
actee
|
13e4002e-064a-4280-a3a7-2058837aed8e
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
19
|
organization_guid
|
cbcdfdb1-fa3c-4421-bfe1-72b800b99978
|
space_guid
|
13e4002e-064a-4280-a3a7-2058837aed8e
|
actor_name
|
email-47@somedomain.com
|
actee_name
|
New Space Name
|