Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY4OX0.fJ3sOpkeN2fzQNJUc3Zx6Ba8D9610OGtpQrlaZCJ2yU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/developers/uaa-id-107

cURL

curl "https://api.[your-domain.com]/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/developers/uaa-id-107" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY4OX0.fJ3sOpkeN2fzQNJUc3Zx6Ba8D9610OGtpQrlaZCJ2yU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 78b7b427-8971-4795-9c23-d5b2975d8bcc
Content-Length: 1254
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e38d3831-26e7-465d-b445-5be7e153e367",
    "url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367",
    "created_at": "2015-02-13T22:34:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-273",
    "organization_guid": "1586def1-332b-40e6-8846-68fa0b7de0a2",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/1586def1-332b-40e6-8846-68fa0b7de0a2",
    "developers_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/developers",
    "managers_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/managers",
    "auditors_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/auditors",
    "apps_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/apps",
    "routes_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/routes",
    "domains_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/domains",
    "service_instances_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/service_instances",
    "app_events_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/app_events",
    "events_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/events",
    "security_groups_url": "/v2/spaces/e38d3831-26e7-465d-b445-5be7e153e367/security_groups"
  }
}