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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.AkTZwbKxwhsk87C5cqvPIJAnUqmeXGie2jHKPXXBb3Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/developers/uaa-id-272

cURL

curl "https://api.[your-domain.com]/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/developers/uaa-id-272" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.AkTZwbKxwhsk87C5cqvPIJAnUqmeXGie2jHKPXXBb3Y" \
	-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: cdf0a50f-a32d-4623-b0ec-1384a5453b5a
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a0f0b5cc-5b38-494e-89c4-82629292677d",
    "url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d",
    "created_at": "2014-11-24T19:32:47+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-992",
    "organization_guid": "99f2214e-2e50-43b9-8238-6cecfdf120fc",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/99f2214e-2e50-43b9-8238-6cecfdf120fc",
    "developers_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/developers",
    "managers_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/managers",
    "auditors_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/auditors",
    "apps_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/apps",
    "routes_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/routes",
    "domains_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/domains",
    "service_instances_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/service_instances",
    "app_events_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/app_events",
    "events_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/events",
    "security_groups_url": "/v2/spaces/a0f0b5cc-5b38-494e-89c4-82629292677d/security_groups"
  }
}