Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/developers/uaa-id-40

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA3fQ.gU8nQQJt5gSGqpj2DxzL35Iw-WdV-eRNpc8jsiMHXLE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/developers/uaa-id-40" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA3fQ.gU8nQQJt5gSGqpj2DxzL35Iw-WdV-eRNpc8jsiMHXLE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56",
    "url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56",
    "created_at": "2016-01-26T22:20:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-104",
    "organization_guid": "afd42d4f-1fc7-443d-a0b1-17784496869c",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/afd42d4f-1fc7-443d-a0b1-17784496869c",
    "developers_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/developers",
    "managers_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/managers",
    "auditors_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/auditors",
    "apps_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/apps",
    "routes_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/routes",
    "domains_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/domains",
    "service_instances_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/service_instances",
    "app_events_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/app_events",
    "events_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/events",
    "security_groups_url": "/v2/spaces/895eb8ce-cbb2-4d7b-ab58-9efcf9c60c56/security_groups"
  }
}

Headers

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