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

Route

PUT /v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/developers/uaa-id-305

cURL

curl "https://api.[your-domain.com]/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/developers/uaa-id-305" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODN9.91btbgnzbHVMbuRYVnJur_9R2cl0VpL5pn2P3Cgk0wI" \
	-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: c506769e-9abc-410c-81d6-daba9c3383ce
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "faf6d37b-ba03-4892-bccb-e37e85069543",
    "url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543",
    "created_at": "2015-01-27T19:14:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1880",
    "organization_guid": "52022c8f-ede3-4be4-a26b-fb4d4e3231da",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/52022c8f-ede3-4be4-a26b-fb4d4e3231da",
    "developers_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/developers",
    "managers_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/managers",
    "auditors_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/auditors",
    "apps_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/apps",
    "routes_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/routes",
    "domains_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/domains",
    "service_instances_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/service_instances",
    "app_events_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/app_events",
    "events_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/events",
    "security_groups_url": "/v2/spaces/faf6d37b-ba03-4892-bccb-e37e85069543/security_groups"
  }
}