Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDF9.5Vkxw1X49j0HvBbu440x2M10GO458gBm6VmAFWQi-yw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDF9.5Vkxw1X49j0HvBbu440x2M10GO458gBm6VmAFWQi-yw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "08a52957-c85c-44ad-9c0f-42e9bd984c95",
    "url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95",
    "created_at": "2015-10-15T23:52:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1417",
    "organization_guid": "882c48d9-9f72-4279-8cae-e63b58818dc7",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/882c48d9-9f72-4279-8cae-e63b58818dc7",
    "developers_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/developers",
    "managers_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/managers",
    "auditors_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/auditors",
    "apps_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/apps",
    "routes_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/routes",
    "domains_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/domains",
    "service_instances_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/service_instances",
    "app_events_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/app_events",
    "events_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/events",
    "security_groups_url": "/v2/spaces/08a52957-c85c-44ad-9c0f-42e9bd984c95/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 582fd1c0-12c9-47d2-8341-866d3cf4b953
Content-Length: 1278
X-Content-Type-Options: nosniff