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

Route

PUT /v2/spaces/309950af-9276-483d-ab57-d520cd4de343/developers/uaa-id-286

cURL

curl "https://api.[your-domain.com]/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/developers/uaa-id-286" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMTkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzN9.PBfdXQJ6K45w3Fy93sZ98Tw4-JxbgwLS2gIEEAGMEj8" \
	-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: bdfd4a2c-c6c1-4494-8da4-0f210fe75303
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "309950af-9276-483d-ab57-d520cd4de343",
    "url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343",
    "created_at": "2015-02-10T01:42:53Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1395",
    "organization_guid": "9620af44-687b-4450-be1e-9157562adc0c",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/9620af44-687b-4450-be1e-9157562adc0c",
    "developers_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/developers",
    "managers_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/managers",
    "auditors_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/auditors",
    "apps_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/apps",
    "routes_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/routes",
    "domains_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/domains",
    "service_instances_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/service_instances",
    "app_events_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/app_events",
    "events_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/events",
    "security_groups_url": "/v2/spaces/309950af-9276-483d-ab57-d520cd4de343/security_groups"
  }
}