Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/developers/uaa-id-231

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NTh9.eMP820eytYmG2-d7vjXjCa21DHEE154vJRPv_vrPpvs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/developers/uaa-id-231" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NTh9.eMP820eytYmG2-d7vjXjCa21DHEE154vJRPv_vrPpvs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "66aadde4-92a6-42d0-8005-a012c67e2163",
    "url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163",
    "created_at": "2015-11-13T17:02:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1429",
    "organization_guid": "f10b95e7-3ed5-46e1-84a8-2993a25f07c4",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f10b95e7-3ed5-46e1-84a8-2993a25f07c4",
    "developers_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/developers",
    "managers_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/managers",
    "auditors_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/auditors",
    "apps_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/apps",
    "routes_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/routes",
    "domains_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/domains",
    "service_instances_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/service_instances",
    "app_events_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/app_events",
    "events_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/events",
    "security_groups_url": "/v2/spaces/66aadde4-92a6-42d0-8005-a012c67e2163/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1278
X-Content-Type-Options: nosniff