Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/developers
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": "developer@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc2fQ.oDW0D-QqK9iK8Awg0p5J3gN41FW-8fny4CUZP-ccZtw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "3bfa2d82-c94f-4951-9db4-f29d1bb04d99",
"url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99",
"created_at": "2015-12-22T18:27:56Z",
"updated_at": null
},
"entity": {
"name": "name-74",
"organization_guid": "aabfb114-8284-4221-a9c3-cdd56928e1d6",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/aabfb114-8284-4221-a9c3-cdd56928e1d6",
"developers_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/developers",
"managers_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/managers",
"auditors_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/auditors",
"apps_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/apps",
"routes_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/routes",
"domains_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/domains",
"service_instances_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/service_instances",
"app_events_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/app_events",
"events_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/events",
"security_groups_url": "/v2/spaces/3bfa2d82-c94f-4951-9db4-f29d1bb04d99/security_groups"
}
}
Headers