Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/developers/uaa-id-91

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.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk5fQ.Hm0v7FxwEU-pxF7EXvd5OKr6A10pEa8O92JSJV_7NOg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/developers/uaa-id-91" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk5fQ.Hm0v7FxwEU-pxF7EXvd5OKr6A10pEa8O92JSJV_7NOg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7",
    "url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7",
    "created_at": "2015-03-10T23:11:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-281",
    "organization_guid": "5bfcbced-abbe-4f36-9813-c3645926b3bb",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/5bfcbced-abbe-4f36-9813-c3645926b3bb",
    "developers_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/developers",
    "managers_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/managers",
    "auditors_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/auditors",
    "apps_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/apps",
    "routes_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/routes",
    "domains_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/domains",
    "service_instances_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/service_instances",
    "app_events_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/app_events",
    "events_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/events",
    "security_groups_url": "/v2/spaces/fe0a3d5d-944c-439b-8a4b-cb2cac7bc2b7/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f3f21e89-9611-4ab3-a3a3-291c10314a52
Content-Length: 1254
X-Content-Type-Options: nosniff