Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space by Username

PUT v2/spaces/:guid/developers

Request

Route

PUT v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/developers

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.3iRTQ7jc7sd6JHICQhLyOzAyaHm-8rnFy-hvT0n9wb8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/developers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.3iRTQ7jc7sd6JHICQhLyOzAyaHm-8rnFy-hvT0n9wb8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "29bd701e-0c98-47be-a2c9-5af47cbb6dbb",
    "url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb",
    "created_at": "2015-09-30T23:30:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1197",
    "organization_guid": "c372ca3d-c378-4014-8c51-c82e64083356",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/c372ca3d-c378-4014-8c51-c82e64083356",
    "developers_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/developers",
    "managers_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/managers",
    "auditors_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/auditors",
    "apps_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/apps",
    "routes_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/routes",
    "domains_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/domains",
    "service_instances_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/service_instances",
    "app_events_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/app_events",
    "events_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/events",
    "security_groups_url": "/v2/spaces/29bd701e-0c98-47be-a2c9-5af47cbb6dbb/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2e4b3d20-76f8-42db-94ec-273caca38e66
Content-Length: 1278
X-Content-Type-Options: nosniff