Remove Manager with the Space by Username
DELETE v2/spaces/:guid/managers
Request
Route
DELETE v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/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/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/managers" -d '{
"username": "manager@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9._nrCqcz2gYSFDKecEaYZPTP99Gx4_wfZnavIHh4NsOQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2",
"url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2",
"created_at": "2016-04-22T19:33:27Z",
"updated_at": null
},
"entity": {
"name": "name-1041",
"organization_guid": "2e1dbf6f-426e-4ad7-b48e-347bbd2bdaa6",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/2e1dbf6f-426e-4ad7-b48e-347bbd2bdaa6",
"developers_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/developers",
"managers_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/managers",
"auditors_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/auditors",
"apps_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/apps",
"routes_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/routes",
"domains_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/domains",
"service_instances_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/service_instances",
"app_events_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/app_events",
"events_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/events",
"security_groups_url": "/v2/spaces/9f29c6d5-10cf-4d2c-a934-b0f2ea054bd2/security_groups"
}
}
Headers