Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/developers/uaa-id-74

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/developers/uaa-id-74" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU4fQ.XkkE84Kb75QgNk4LCDpvApQgpbodnS3HMhVRTJJaF1Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "83291e15-e210-4031-b1d0-57b9efc90485",
    "url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485",
    "created_at": "2015-03-18T22:52:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-205",
    "organization_guid": "32c5969f-fde5-45b1-865e-8c1c69980b0a",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/32c5969f-fde5-45b1-865e-8c1c69980b0a",
    "developers_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/developers",
    "managers_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/managers",
    "auditors_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/auditors",
    "apps_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/apps",
    "routes_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/routes",
    "domains_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/domains",
    "service_instances_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/service_instances",
    "app_events_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/app_events",
    "events_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/events",
    "security_groups_url": "/v2/spaces/83291e15-e210-4031-b1d0-57b9efc90485/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aa5cbaff-ff27-44de-b9ac-c591d6d7f8d9
Content-Length: 1254
X-Content-Type-Options: nosniff