Spaces API

Remove Developer with the Space by Username

POST v2/spaces/:guid/developers/remove

Request

Route

POST v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/developers/remove

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
origin The UAA origin
  • ldap
  • uaa
{
  "username": "[email protected]"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNyIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.QRAN27vW28Wu6cCu0ngDyLVBDG_RcuGfxbae9litcfg
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/developers/remove" -d '{
  "username": "[email protected]"
}' -X POST \
  -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNyIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.QRAN27vW28Wu6cCu0ngDyLVBDG_RcuGfxbae9litcfg" \
  -H "Host: example.org" \
  -H "Content-Type: application/json" \
  -H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "72736bea-7c64-4649-8472-bc5dd09b6e87",
    "url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87",
    "created_at": "2016-06-08T16:41:42Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-2139",
    "organization_guid": "fc993c26-9a55-4b73-ae44-2e87d607136f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/fc993c26-9a55-4b73-ae44-2e87d607136f",
    "developers_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/developers",
    "managers_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/managers",
    "auditors_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/auditors",
    "apps_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/apps",
    "routes_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/routes",
    "domains_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/domains",
    "service_instances_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/service_instances",
    "app_events_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/app_events",
    "events_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/events",
    "security_groups_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/security_groups",
    "staging_security_groups_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/staging_security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3251e6e6-dd80-4c85-a9c7-fa2a1968ce12
Content-Length: 1278
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.user.space_developer_remove

Attribute Name Value
id 3
guid 3ae5862c-fb43-49ed-935b-8feb7d0e19e8
created_at 2016-06-08 16:41:40 UTC
updated_at
timestamp 2016-06-08 16:41:40 UTC
type audit.user.space_developer_remove
actor uaa-id-360
actor_type user
actee 2a01cf80-9fbf-448f-a7a0-1e415e28771e
actee_type space
metadata
{
  "request": null
}
organization_guid 28960823-1b68-4a2b-8f36-77cc573bccca
space_guid 2a01cf80-9fbf-448f-a7a0-1e415e28771e
actor_name [email protected]
actee_name development