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-8abdbbd2-0b44-4759-a9b4-ab0789c9e514
|
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/4e306934-4448-422e-92f2-5c6a97c0f376
Body
{
"name": "New Space Name"
}
cURL
curl "https://api.[your-domain.com]/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDZ9.8aiDsPfhkEIqfkiPQt9SKH6BhCOUGSUzznk8uEzTasM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "4e306934-4448-422e-92f2-5c6a97c0f376",
"url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376",
"created_at": "2014-11-13T23:38:26+00:00",
"updated_at": "2014-11-13T23:38:26+00:00"
},
"entity": {
"name": "New Space Name",
"organization_guid": "68af1a3f-8f1e-4ee6-8833-0820d10d99fc",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/68af1a3f-8f1e-4ee6-8833-0820d10d99fc",
"developers_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/developers",
"managers_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/managers",
"auditors_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/auditors",
"apps_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/apps",
"routes_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/routes",
"domains_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/domains",
"service_instances_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/service_instances",
"app_events_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/app_events",
"events_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/events",
"security_groups_url": "/v2/spaces/4e306934-4448-422e-92f2-5c6a97c0f376/security_groups"
}
}
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
1
|
guid
|
9b413840-29db-4fc9-9e22-73d95a0e840c
|
created_at
|
2014-11-13 23:38:26 +0000
|
updated_at
|
|
timestamp
|
2014-11-13 23:38:26 +0000
|
type
|
audit.space.update
|
actor
|
uaa-id-213
|
actor_type
|
user
|
actee
|
4e306934-4448-422e-92f2-5c6a97c0f376
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
47
|
organization_guid
|
68af1a3f-8f1e-4ee6-8833-0820d10d99fc
|
space_guid
|
4e306934-4448-422e-92f2-5c6a97c0f376
|
actor_name
|
email-157@somedomain.com
|
actee_name
|
New Space Name
|