Remove Manager with the Space by Username
DELETE v2/spaces/:guid/managers
Request
Route
DELETE v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/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/e941b37a-863c-411b-bf5a-9c239cac755d/managers" -d '{
"username": "manager@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.MSBZcUZxvdtVkT4eKn4LdtW7wrw_S4qdad9uC5cTUnc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "e941b37a-863c-411b-bf5a-9c239cac755d",
"url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d",
"created_at": "2016-06-08T16:41:41Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"name": "name-2113",
"organization_guid": "d17da21a-d8e3-4f85-b611-9da8e140c625",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/d17da21a-d8e3-4f85-b611-9da8e140c625",
"developers_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/developers",
"managers_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/managers",
"auditors_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/auditors",
"apps_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/apps",
"routes_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/routes",
"domains_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/domains",
"service_instances_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/service_instances",
"app_events_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/app_events",
"events_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/events",
"security_groups_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/security_groups"
}
}
Headers