Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/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/a7d9a3a3-ec96-4121-80e1-189db5c7c030/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.BVBWgN5sGyug8ooehwgdpgwdPifz1qfjT2KQ3m1DHIg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "a7d9a3a3-ec96-4121-80e1-189db5c7c030",
"url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030",
"created_at": "2016-01-13T17:29:31Z",
"updated_at": null
},
"entity": {
"name": "name-82",
"organization_guid": "f58b22ce-003b-428f-89b4-45af21eb81d7",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/f58b22ce-003b-428f-89b4-45af21eb81d7",
"developers_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/developers",
"managers_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/managers",
"auditors_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/auditors",
"apps_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/apps",
"routes_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/routes",
"domains_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/domains",
"service_instances_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/service_instances",
"app_events_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/app_events",
"events_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/events",
"security_groups_url": "/v2/spaces/a7d9a3a3-ec96-4121-80e1-189db5c7c030/security_groups"
}
}
Headers