Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/developers/uaa-id-25

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
developer_guid The guid of the developer

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0xNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI1fQ._VCT58R3as7EOGCw2vhHgngYTfq9_UFx-wbuz-7niF0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/developers/uaa-id-25" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0xNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI1fQ._VCT58R3as7EOGCw2vhHgngYTfq9_UFx-wbuz-7niF0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "603bb4fc-c14f-426c-be08-0135db1aa207",
    "url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207",
    "created_at": "2015-09-11T18:38:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-50",
    "organization_guid": "2c0ded9f-ce28-410c-a1ff-a4aa58f5427d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/2c0ded9f-ce28-410c-a1ff-a4aa58f5427d",
    "developers_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/developers",
    "managers_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/managers",
    "auditors_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/auditors",
    "apps_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/apps",
    "routes_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/routes",
    "domains_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/domains",
    "service_instances_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/service_instances",
    "app_events_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/app_events",
    "events_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/events",
    "security_groups_url": "/v2/spaces/603bb4fc-c14f-426c-be08-0135db1aa207/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 92add2a5-7423-49ab-bcf6-4e9ce55b2ef5
Content-Length: 1276
X-Content-Type-Options: nosniff