Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

PUT /v2/spaces/:guid/developers/:developer_guid

Request

Route

PUT /v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/developers/uaa-id-190

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
developer_guid The guid of the developer

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDF9.PdJJuO7OsCOGdlfzBOVAl2vcObQxorTTw6Rg0szSocw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/developers/uaa-id-190" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDF9.PdJJuO7OsCOGdlfzBOVAl2vcObQxorTTw6Rg0szSocw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "84695c7e-f4f1-4336-add5-46efca204cd0",
    "url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0",
    "created_at": "2015-10-15T23:52:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1400",
    "organization_guid": "3d149ddc-5eb4-4e24-88cd-f853bce469e9",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3d149ddc-5eb4-4e24-88cd-f853bce469e9",
    "developers_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/developers",
    "managers_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/managers",
    "auditors_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/auditors",
    "apps_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/apps",
    "routes_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/routes",
    "domains_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/domains",
    "service_instances_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/service_instances",
    "app_events_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/app_events",
    "events_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/events",
    "security_groups_url": "/v2/spaces/84695c7e-f4f1-4336-add5-46efca204cd0/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fb0e1036-3a43-4e6c-ad57-f47861cd8002
Content-Length: 1278
X-Content-Type-Options: nosniff