Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/developers/uaa-id-214

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/developers/uaa-id-214" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNSIsImVtYWlsIjoiZW1haWwtMTMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDh9.9TuLOcFztoeGSoO9r6kWprmttKwkr1MYEiX9IRvtlf4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b19435ef-de38-460d-b210-e0bb1791b12f",
    "url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f",
    "created_at": "2015-06-04T00:05:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1428",
    "organization_guid": "f18304b2-045a-4b9a-98f6-a5f64765e850",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f18304b2-045a-4b9a-98f6-a5f64765e850",
    "developers_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/developers",
    "managers_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/managers",
    "auditors_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/auditors",
    "apps_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/apps",
    "routes_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/routes",
    "domains_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/domains",
    "service_instances_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/service_instances",
    "app_events_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/app_events",
    "events_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/events",
    "security_groups_url": "/v2/spaces/b19435ef-de38-460d-b210-e0bb1791b12f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b51ee9a8-c731-409a-b386-92169f06607f
Content-Length: 1278
X-Content-Type-Options: nosniff