Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/8d720596-d74d-405f-8816-98e944b91851/developers/uaa-id-80

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/developers/uaa-id-80" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgxIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAxfQ.brQcGSvfDTp8GG3WO9BpzMYCqlGLnPxiVPH7d3pMCak" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8d720596-d74d-405f-8816-98e944b91851",
    "url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851",
    "created_at": "2015-04-07T19:11:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-248",
    "organization_guid": "4e02f49a-1f46-435a-af41-07a6ba627957",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/4e02f49a-1f46-435a-af41-07a6ba627957",
    "developers_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/developers",
    "managers_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/managers",
    "auditors_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/auditors",
    "apps_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/apps",
    "routes_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/routes",
    "domains_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/domains",
    "service_instances_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/service_instances",
    "app_events_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/app_events",
    "events_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/events",
    "security_groups_url": "/v2/spaces/8d720596-d74d-405f-8816-98e944b91851/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9031299b-1f75-4cee-8d78-1415a18182eb
Content-Length: 1254
X-Content-Type-Options: nosniff