Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/developers/uaa-id-345

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/developers/uaa-id-345" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NiIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDh9.vISwWrRJ7qYGDYQMm2FCHng7zDwMYnLpxRW1ZXQosL4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "890de4d9-a16e-4937-a10a-d525e0e1604e",
    "url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e",
    "created_at": "2016-03-14T22:30:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2291",
    "organization_guid": "3a32dd29-d087-4d34-ad5f-dd5fbab4f3ec",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3a32dd29-d087-4d34-ad5f-dd5fbab4f3ec",
    "developers_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/developers",
    "managers_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/managers",
    "auditors_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/auditors",
    "apps_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/apps",
    "routes_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/routes",
    "domains_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/domains",
    "service_instances_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/service_instances",
    "app_events_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/app_events",
    "events_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/events",
    "security_groups_url": "/v2/spaces/890de4d9-a16e-4937-a10a-d525e0e1604e/security_groups"
  }
}

Headers

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