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-4ee958b7-248c-404e-915f-c9ee95aa5dab
|
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/59d60083-ff12-40f0-8250-e9b0a39594cd
Body
{
"name": "New Space Name"
}
cURL
curl "https://api.[your-domain.com]/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MSIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDN9.XufYcXiudbjyRy2GUUFPVoP7W3D-zvFVrEC7LiSAigA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "59d60083-ff12-40f0-8250-e9b0a39594cd",
"url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd",
"created_at": "2015-02-12T01:42:22Z",
"updated_at": "2015-02-12T01:42:22Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "491c56b9-c296-4c0b-af74-9ddaffabe2b3",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/491c56b9-c296-4c0b-af74-9ddaffabe2b3",
"developers_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/developers",
"managers_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/managers",
"auditors_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/auditors",
"apps_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/apps",
"routes_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/routes",
"domains_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/domains",
"service_instances_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/service_instances",
"app_events_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/app_events",
"events_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/events",
"security_groups_url": "/v2/spaces/59d60083-ff12-40f0-8250-e9b0a39594cd/security_groups"
}
}
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
4
|
guid
|
dac3bd0c-df2e-4c01-b530-3d15a5213536
|
created_at
|
2015-02-12 01:42:22 UTC
|
updated_at
|
|
timestamp
|
2015-02-12 01:42:22 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-351
|
actor_type
|
user
|
actee
|
59d60083-ff12-40f0-8250-e9b0a39594cd
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
9
|
organization_guid
|
491c56b9-c296-4c0b-af74-9ddaffabe2b3
|
space_guid
|
59d60083-ff12-40f0-8250-e9b0a39594cd
|
actor_name
|
email-272@somedomain.com
|
actee_name
|
New Space Name
|