Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/developers/uaa-id-164

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/developers/uaa-id-164" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTV9.L7FcqPNvr47loijty_GFWXdKMcW8RgfhYyjIfTu2914" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9213517f-54c5-482d-90ab-69ebe9cad180",
    "url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180",
    "created_at": "2015-05-15T16:53:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-789",
    "organization_guid": "f016026c-1051-44b7-aae4-8774eacfcd2b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f016026c-1051-44b7-aae4-8774eacfcd2b",
    "developers_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/developers",
    "managers_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/managers",
    "auditors_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/auditors",
    "apps_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/apps",
    "routes_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/routes",
    "domains_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/domains",
    "service_instances_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/service_instances",
    "app_events_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/app_events",
    "events_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/events",
    "security_groups_url": "/v2/spaces/9213517f-54c5-482d-90ab-69ebe9cad180/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f07bee99-884e-4d64-8086-ef6aaf9afa7e
Content-Length: 1277
X-Content-Type-Options: nosniff