Remove Manager with the Space by Username
DELETE v2/spaces/:guid/managers
Request
Route
DELETE v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/managers
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "manager@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/managers" -d '{
"username": "manager@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.dxaFfWUkniVodYyYPBhJz9nx-SjTzNyPtUY-RzzykZE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "88a979b7-9f6e-4da4-86b0-1952fc8f60f5",
"url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5",
"created_at": "2016-04-16T01:23:48Z",
"updated_at": null
},
"entity": {
"name": "name-296",
"organization_guid": "3043d629-0e0d-4a59-8ce4-ed49fe6d0c15",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/3043d629-0e0d-4a59-8ce4-ed49fe6d0c15",
"developers_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/developers",
"managers_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/managers",
"auditors_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/auditors",
"apps_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/apps",
"routes_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/routes",
"domains_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/domains",
"service_instances_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/service_instances",
"app_events_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/app_events",
"events_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/events",
"security_groups_url": "/v2/spaces/88a979b7-9f6e-4da4-86b0-1952fc8f60f5/security_groups"
}
}
Headers