Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/developers/uaa-id-15

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA3fQ.TZYgywYtIC5E5HxoiD-U8vjv8viAd1zmtW-draBWhww
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/developers/uaa-id-15" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA3fQ.TZYgywYtIC5E5HxoiD-U8vjv8viAd1zmtW-draBWhww" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f308cfec-7b7f-476f-9730-6c98ee534ebf",
    "url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf",
    "created_at": "2015-11-30T23:38:27Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-46",
    "organization_guid": "0e520db8-be6d-4029-8211-49e6048fac93",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/0e520db8-be6d-4029-8211-49e6048fac93",
    "developers_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/developers",
    "managers_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/managers",
    "auditors_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/auditors",
    "apps_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/apps",
    "routes_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/routes",
    "domains_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/domains",
    "service_instances_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/service_instances",
    "app_events_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/app_events",
    "events_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/events",
    "security_groups_url": "/v2/spaces/f308cfec-7b7f-476f-9730-6c98ee534ebf/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff