Update a Space
PUT /v2/spaces/:guid
Request
Route
PUT /v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831
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-249ee6ac-44f0-4024-a492-ebbe5a5e8ed5
|
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/b4c6531a-1ae3-43d5-9889-d8a4440b7831" -d '{
"name": "New Space Name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDR9.t9uOrKhqp3WHF6dYsMMq5WmNO5E_-oBegdizsxYmCbI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "b4c6531a-1ae3-43d5-9889-d8a4440b7831",
"url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831",
"created_at": "2016-02-19T02:04:04Z",
"updated_at": "2016-02-19T02:04:04Z"
},
"entity": {
"name": "New Space Name",
"organization_guid": "0c882677-bec1-413e-86c4-57ef68da3540",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/0c882677-bec1-413e-86c4-57ef68da3540",
"developers_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/developers",
"managers_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/managers",
"auditors_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/auditors",
"apps_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/apps",
"routes_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/routes",
"domains_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/domains",
"service_instances_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/service_instances",
"app_events_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/app_events",
"events_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/events",
"security_groups_url": "/v2/spaces/b4c6531a-1ae3-43d5-9889-d8a4440b7831/security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.space.update
Attribute Name |
Value |
id
|
184
|
guid
|
9cb701e1-c235-4384-ae00-193f6a9f61f2
|
created_at
|
2016-02-19 02:04:04 UTC
|
updated_at
|
|
timestamp
|
2016-02-19 02:04:04 UTC
|
type
|
audit.space.update
|
actor
|
uaa-id-373
|
actor_type
|
user
|
actee
|
b4c6531a-1ae3-43d5-9889-d8a4440b7831
|
actee_type
|
space
|
metadata
|
{
"request": {
"name": "New Space Name"
}
}
|
space_id
|
|
organization_guid
|
0c882677-bec1-413e-86c4-57ef68da3540
|
space_guid
|
b4c6531a-1ae3-43d5-9889-d8a4440b7831
|
actor_name
|
email-273@somedomain.com
|
actee_name
|
New Space Name
|