Update a Space
PUT /v2/spaces/:guid
Fields
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-4b94f8bd-996d-46a7-8dcf-9c047e609c51
|
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
|
|
|
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Request
Headers
Route
PUT /v2/spaces/8259b5df-386f-4102-8bed-1a897b403018
Body
{
"name": "New Space Name"
}
cURL
curl "https://api.[your-domain.com]/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.iRoS87bq1h9yGvhnbQuY0qgadL-ocMZ0axJu-EAXYTo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "8259b5df-386f-4102-8bed-1a897b403018",
"url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018",
"created_at": "2015-02-13T22:34:48Z",
"updated_at": "2015-02-13T22:34:48Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "e441fa13-7cef-48b9-b722-6afb48c671b2",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/e441fa13-7cef-48b9-b722-6afb48c671b2",
"developers_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/developers",
"managers_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/managers",
"auditors_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/auditors",
"apps_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/apps",
"routes_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/routes",
"domains_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/domains",
"service_instances_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/service_instances",
"app_events_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/app_events",
"events_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/events",
"security_groups_url": "/v2/spaces/8259b5df-386f-4102-8bed-1a897b403018/security_groups"
}
}
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
11
|
guid
|
80d291cb-6c47-4272-a400-d9402d966b1a
|
created_at
|
2015-02-13 22:34:48 UTC
|
updated_at
|
|
timestamp
|
2015-02-13 22:34:48 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-72
|
actor_type
|
user
|
actee
|
8259b5df-386f-4102-8bed-1a897b403018
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
21
|
organization_guid
|
e441fa13-7cef-48b9-b722-6afb48c671b2
|
space_guid
|
8259b5df-386f-4102-8bed-1a897b403018
|
actor_name
|
email-53@somedomain.com
|
actee_name
|
New Space Name
|