Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/developers/uaa-id-418

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.UCq7FRBYU6ZOIEHm0la8mnjuHdFtzHqMFHIZecB7zSQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/developers/uaa-id-418" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.UCq7FRBYU6ZOIEHm0la8mnjuHdFtzHqMFHIZecB7zSQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "340be0ba-0b60-4f6e-aebf-a73513d39e04",
    "url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04",
    "created_at": "2016-06-08T16:41:42Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-2151",
    "organization_guid": "d1cf692c-6b5a-4462-9f87-5e9fd5b980dc",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d1cf692c-6b5a-4462-9f87-5e9fd5b980dc",
    "developers_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/developers",
    "managers_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/managers",
    "auditors_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/auditors",
    "apps_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/apps",
    "routes_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/routes",
    "domains_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/domains",
    "service_instances_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/service_instances",
    "app_events_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/app_events",
    "events_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/events",
    "security_groups_url": "/v2/spaces/340be0ba-0b60-4f6e-aebf-a73513d39e04/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b3d791bb-b575-4c21-9cf1-1d9b456d68e3
Content-Length: 1278
X-Content-Type-Options: nosniff