Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/developers/uaa-id-119

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.lEtxl5Zi3w88pl90RGq0PO6Y3Z90jo-T8varoW2L6mc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/developers/uaa-id-119" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.lEtxl5Zi3w88pl90RGq0PO6Y3Z90jo-T8varoW2L6mc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e231b3c3-80ed-43cb-ba90-e851f79bb260",
    "url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260",
    "created_at": "2015-09-30T23:30:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1194",
    "organization_guid": "1584ab06-5e00-4ced-8ec3-c869004e2d10",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/1584ab06-5e00-4ced-8ec3-c869004e2d10",
    "developers_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/developers",
    "managers_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/managers",
    "auditors_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/auditors",
    "apps_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/apps",
    "routes_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/routes",
    "domains_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/domains",
    "service_instances_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/service_instances",
    "app_events_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/app_events",
    "events_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/events",
    "security_groups_url": "/v2/spaces/e231b3c3-80ed-43cb-ba90-e851f79bb260/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: edfc23d0-b562-4e61-a638-25e29526153b
Content-Length: 1278
X-Content-Type-Options: nosniff