Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/developers/uaa-id-136

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.0B5n831djlCAnSs-Hu13SX11swJB4RnlSwR8n5b4Ux8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/developers/uaa-id-136" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.0B5n831djlCAnSs-Hu13SX11swJB4RnlSwR8n5b4Ux8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c4dac0b8-184e-4280-ae4d-2946d0b9403f",
    "url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f",
    "created_at": "2016-04-16T01:23:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-281",
    "organization_guid": "7b74a685-a0aa-4403-9e4b-0b64cc92d379",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/7b74a685-a0aa-4403-9e4b-0b64cc92d379",
    "developers_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/developers",
    "managers_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/managers",
    "auditors_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/auditors",
    "apps_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/apps",
    "routes_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/routes",
    "domains_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/domains",
    "service_instances_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/service_instances",
    "app_events_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/app_events",
    "events_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/events",
    "security_groups_url": "/v2/spaces/c4dac0b8-184e-4280-ae4d-2946d0b9403f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a9914184-c54c-46be-b1d9-e2b0ad4e4c6f
Content-Length: 1277
X-Content-Type-Options: nosniff