Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199
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-481dbe0e-2b93-41e8-b369-170783335059
|
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/4ac07875-e400-4b14-877f-9c5ccb277199" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA5fQ.QtChpcigqEh49xDKXKOXfcTHhr6N9M14YATNoxnw2gs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4ac07875-e400-4b14-877f-9c5ccb277199",
"url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199",
"created_at": "2015-11-30T23:38:29Z",
"updated_at": "2015-11-30T23:38:29Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "9f251186-e03e-477d-a153-e7b7ed1212b8",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/9f251186-e03e-477d-a153-e7b7ed1212b8",
"developers_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/developers",
"managers_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/managers",
"auditors_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/auditors",
"apps_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/apps",
"routes_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/routes",
"domains_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/domains",
"service_instances_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/service_instances",
"app_events_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/app_events",
"events_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/events",
"security_groups_url": "/v2/spaces/4ac07875-e400-4b14-877f-9c5ccb277199/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
16
|
guid
|
be2ae484-2d90-464b-99f6-873ec9bd1a86
|
created_at
|
2015-11-30 23:38:29 UTC
|
updated_at
|
|
timestamp
|
2015-11-30 23:38:29 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-72
|
actor_type
|
user
|
actee
|
4ac07875-e400-4b14-877f-9c5ccb277199
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
|
organization_guid
|
9f251186-e03e-477d-a153-e7b7ed1212b8
|
space_guid
|
4ac07875-e400-4b14-877f-9c5ccb277199
|
actor_name
|
email-39@somedomain.com
|
actee_name
|
New Space Name
|