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

Route

PUT /v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/developers/uaa-id-44

cURL

curl "https://api.[your-domain.com]/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/developers/uaa-id-44" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYyfQ.3_F2DgFoqzLzYfjUOU1IWL_QKEUYdIXwD2p7WX0xvEA" \
	-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: 8056dcc1-cb41-4094-9baa-8ea915cb966c
Content-Length: 1258
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7e882bce-8976-4b56-a2eb-5119a12fcee1",
    "url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1",
    "created_at": "2014-12-24T01:39:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-88",
    "organization_guid": "aac320e3-39b0-458a-9aae-89d497cb38bb",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/aac320e3-39b0-458a-9aae-89d497cb38bb",
    "developers_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/developers",
    "managers_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/managers",
    "auditors_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/auditors",
    "apps_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/apps",
    "routes_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/routes",
    "domains_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/domains",
    "service_instances_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/service_instances",
    "app_events_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/app_events",
    "events_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/events",
    "security_groups_url": "/v2/spaces/7e882bce-8976-4b56-a2eb-5119a12fcee1/security_groups"
  }
}