Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/developers/uaa-id-289

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MCIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.ICDuSVJV6-LfFTQCZF5FXUdIiI5hhOXIMQJ4gVZRhlY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/developers/uaa-id-289" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MCIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.ICDuSVJV6-LfFTQCZF5FXUdIiI5hhOXIMQJ4gVZRhlY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e9625b13-728b-4e3c-a3cc-7124ab1e6341",
    "url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341",
    "created_at": "2016-04-22T19:33:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1019",
    "organization_guid": "5becbf43-68b8-4ba3-be6a-4c18b8a9bd6d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5becbf43-68b8-4ba3-be6a-4c18b8a9bd6d",
    "developers_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/developers",
    "managers_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/managers",
    "auditors_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/auditors",
    "apps_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/apps",
    "routes_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/routes",
    "domains_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/domains",
    "service_instances_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/service_instances",
    "app_events_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/app_events",
    "events_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/events",
    "security_groups_url": "/v2/spaces/e9625b13-728b-4e3c-a3cc-7124ab1e6341/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 673b94e8-f16e-4822-af88-24451e3a80ec
Content-Length: 1278
X-Content-Type-Options: nosniff