Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/developers/uaa-id-42

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.bn_jZYQDcN3Gc1pDr5dPdYJj0-1pPlRIAwXGS5By18Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/developers/uaa-id-42" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.bn_jZYQDcN3Gc1pDr5dPdYJj0-1pPlRIAwXGS5By18Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ef7071d9-98c7-4217-9a2c-2aaf97d99807",
    "url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-120",
    "organization_guid": "baa8e9b7-adfb-428e-91e6-560b0c9d8d1a",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/baa8e9b7-adfb-428e-91e6-560b0c9d8d1a",
    "developers_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/developers",
    "managers_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/managers",
    "auditors_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/auditors",
    "apps_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/apps",
    "routes_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/routes",
    "domains_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/domains",
    "service_instances_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/service_instances",
    "app_events_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/app_events",
    "events_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/events",
    "security_groups_url": "/v2/spaces/ef7071d9-98c7-4217-9a2c-2aaf97d99807/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 65dcff0a-50b9-455a-a5f0-60a1f05a56b8
Content-Length: 1277
X-Content-Type-Options: nosniff