Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/developers/uaa-id-43

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.2kQc4k9_6l_Kq02kBcB7T7BLISmjlMe7uITN1P7o2rs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/developers/uaa-id-43" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.2kQc4k9_6l_Kq02kBcB7T7BLISmjlMe7uITN1P7o2rs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c8345f3f-e885-4be3-b529-a06eb1750c4b",
    "url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b",
    "created_at": "2015-10-07T00:35:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-108",
    "organization_guid": "bf26e4a4-cb59-4f29-8895-6427fde871e2",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/bf26e4a4-cb59-4f29-8895-6427fde871e2",
    "developers_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/developers",
    "managers_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/managers",
    "auditors_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/auditors",
    "apps_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/apps",
    "routes_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/routes",
    "domains_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/domains",
    "service_instances_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/service_instances",
    "app_events_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/app_events",
    "events_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/events",
    "security_groups_url": "/v2/spaces/c8345f3f-e885-4be3-b529-a06eb1750c4b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a338632f-b806-4d40-8be2-c2f51b008e67
Content-Length: 1277
X-Content-Type-Options: nosniff