Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/developers/uaa-id-33

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc2fQ.VePG5JZaG3_Uxf4VmBg2RKmzOLipBmuFtoJvY-0rujQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/developers/uaa-id-33" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc2fQ.VePG5JZaG3_Uxf4VmBg2RKmzOLipBmuFtoJvY-0rujQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a4fe069d-ad7e-4cee-b065-8d4dabf1bff0",
    "url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0",
    "created_at": "2015-12-22T18:27:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-68",
    "organization_guid": "5b35e40e-ddb4-412f-90e8-f98886cad8f8",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5b35e40e-ddb4-412f-90e8-f98886cad8f8",
    "developers_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/developers",
    "managers_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/managers",
    "auditors_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/auditors",
    "apps_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/apps",
    "routes_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/routes",
    "domains_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/domains",
    "service_instances_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/service_instances",
    "app_events_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/app_events",
    "events_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/events",
    "security_groups_url": "/v2/spaces/a4fe069d-ad7e-4cee-b065-8d4dabf1bff0/security_groups"
  }
}

Headers

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