Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/developers/uaa-id-76

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc3IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.ly7d1QX7lW9DTvE4AXy6cDHv6UX0zEuKvSSLq-W-NBM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/developers/uaa-id-76" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc3IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.ly7d1QX7lW9DTvE4AXy6cDHv6UX0zEuKvSSLq-W-NBM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "38636f6c-10d2-4d46-8b8d-30ed06e57c8d",
    "url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d",
    "created_at": "2015-05-07T23:37:09Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-970",
    "organization_guid": "61d8ab53-ba00-4e04-a103-dba17fecd282",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/61d8ab53-ba00-4e04-a103-dba17fecd282",
    "developers_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/developers",
    "managers_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/managers",
    "auditors_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/auditors",
    "apps_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/apps",
    "routes_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/routes",
    "domains_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/domains",
    "service_instances_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/service_instances",
    "app_events_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/app_events",
    "events_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/events",
    "security_groups_url": "/v2/spaces/38636f6c-10d2-4d46-8b8d-30ed06e57c8d/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 54156a8a-3d04-40b2-955e-66b670cfc274
Content-Length: 1277
X-Content-Type-Options: nosniff