Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/developers/uaa-id-201

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/developers/uaa-id-201" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.HNcbFH5H_MctyRFb1wEd0DuMV4P1rKQ_NohBBiTdjKQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dc73ded6-e60d-47c6-b17b-0826d0ef8eb4",
    "url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4",
    "created_at": "2015-03-03T00:51:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1266",
    "organization_guid": "f34e6181-f619-428f-a9a3-769e8c45f1b8",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/f34e6181-f619-428f-a9a3-769e8c45f1b8",
    "developers_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/developers",
    "managers_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/managers",
    "auditors_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/auditors",
    "apps_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/apps",
    "routes_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/routes",
    "domains_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/domains",
    "service_instances_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/service_instances",
    "app_events_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/app_events",
    "events_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/events",
    "security_groups_url": "/v2/spaces/dc73ded6-e60d-47c6-b17b-0826d0ef8eb4/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 744417f7-ff00-42b5-ac55-f5c0fea2d212
Content-Length: 1255
X-Content-Type-Options: nosniff