Home
Version 3
Spaces API

Spaces API

Remove Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/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
  • user@example.com
{
  "username": "manager@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.iE8gpe5u36qDDX5zUv1_fTKb9rvA7F0mHwiv86FXHC8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.iE8gpe5u36qDDX5zUv1_fTKb9rvA7F0mHwiv86FXHC8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7c6ca59d-5f29-4fcb-8a86-574832c8ff88",
    "url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88",
    "created_at": "2016-05-12T00:45:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1606",
    "organization_guid": "5d975845-f33c-4dc6-81e5-9f3284cca7b6",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5d975845-f33c-4dc6-81e5-9f3284cca7b6",
    "developers_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/developers",
    "managers_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/managers",
    "auditors_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/auditors",
    "apps_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/apps",
    "routes_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/routes",
    "domains_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/domains",
    "service_instances_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/service_instances",
    "app_events_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/app_events",
    "events_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/events",
    "security_groups_url": "/v2/spaces/7c6ca59d-5f29-4fcb-8a86-574832c8ff88/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9ec5401f-da24-4514-bd07-161334cf0093
Content-Length: 1278
X-Content-Type-Options: nosniff