Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/developers/uaa-id-37

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.Zm8i-2uG_g8yVx2s_iFWessjMn5akpokSz-yH6sEvsE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/developers/uaa-id-37" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.Zm8i-2uG_g8yVx2s_iFWessjMn5akpokSz-yH6sEvsE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bdeb9595-978f-4fe7-9672-996f59ada22c",
    "url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c",
    "created_at": "2016-01-13T17:29:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-76",
    "organization_guid": "65803f58-fa0c-41fd-a673-3931a855fa8b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/65803f58-fa0c-41fd-a673-3931a855fa8b",
    "developers_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/developers",
    "managers_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/managers",
    "auditors_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/auditors",
    "apps_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/apps",
    "routes_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/routes",
    "domains_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/domains",
    "service_instances_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/service_instances",
    "app_events_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/app_events",
    "events_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/events",
    "security_groups_url": "/v2/spaces/bdeb9595-978f-4fe7-9672-996f59ada22c/security_groups"
  }
}

Headers

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