Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDd9.odXLa652z-vT3lU6Dy1XV0dQCd70h8QRrHAMalO-PQE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/developers/uaa-id-238

cURL

curl "https://api.[your-domain.com]/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/developers/uaa-id-238" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDd9.odXLa652z-vT3lU6Dy1XV0dQCd70h8QRrHAMalO-PQE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7721ca69-3228-4ac8-8df7-5d433e74f1c4
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "03bcaf0f-6b0b-4b45-a887-cb2e20d19d01",
    "url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01",
    "created_at": "2014-11-13T23:38:27+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-813",
    "organization_guid": "d822cd96-9a36-4402-874c-abd426c45aec",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/d822cd96-9a36-4402-874c-abd426c45aec",
    "developers_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/developers",
    "managers_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/managers",
    "auditors_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/auditors",
    "apps_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/apps",
    "routes_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/routes",
    "domains_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/domains",
    "service_instances_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/service_instances",
    "app_events_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/app_events",
    "events_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/events",
    "security_groups_url": "/v2/spaces/03bcaf0f-6b0b-4b45-a887-cb2e20d19d01/security_groups"
  }
}