Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/developers/uaa-id-81

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/developers/uaa-id-81" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC01MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc3fQ.apErj_KLHTrC4O1xpEHbO81gkYBCYYIFlDPRHOU0gVg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5e3e63fa-f020-416b-86db-3bb377813798",
    "url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798",
    "created_at": "2015-07-06T23:22:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-254",
    "organization_guid": "91171f0e-6792-4630-8f32-a9979abb4aef",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/91171f0e-6792-4630-8f32-a9979abb4aef",
    "developers_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/developers",
    "managers_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/managers",
    "auditors_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/auditors",
    "apps_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/apps",
    "routes_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/routes",
    "domains_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/domains",
    "service_instances_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/service_instances",
    "app_events_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/app_events",
    "events_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/events",
    "security_groups_url": "/v2/spaces/5e3e63fa-f020-416b-86db-3bb377813798/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a5c92ccc-0cd2-479a-980b-05495377fedd
Content-Length: 1277
X-Content-Type-Options: nosniff