Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/developers/uaa-id-369

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/developers/uaa-id-369" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.JljMxTB3XXMKxk35RYcnYA5b25VnucfLhiRexMXZ9no" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dc6efe17-6311-456f-aad7-739cb088757a",
    "url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a",
    "created_at": "2015-05-21T01:03:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2224",
    "organization_guid": "1aa0482a-f32c-469f-afa5-4c4a0ef16ebc",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/1aa0482a-f32c-469f-afa5-4c4a0ef16ebc",
    "developers_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/developers",
    "managers_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/managers",
    "auditors_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/auditors",
    "apps_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/apps",
    "routes_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/routes",
    "domains_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/domains",
    "service_instances_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/service_instances",
    "app_events_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/app_events",
    "events_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/events",
    "security_groups_url": "/v2/spaces/dc6efe17-6311-456f-aad7-739cb088757a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9dd2547d-863e-455f-b002-774d875e85c1
Content-Length: 1278
X-Content-Type-Options: nosniff