Home
Version 3
Spaces API

Spaces API

Associate Developer with the Space

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

Request

Route

PUT /v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/developers/uaa-id-245

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/developers/uaa-id-245" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTB9.5zBtUCK4c0hbS_4EaIzPf3YgIRZ_5JKMf0AI8mGspSQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6fb1e53d-f495-448f-aa89-050e89e0e09b",
    "url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b",
    "created_at": "2015-03-05T19:15:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-737",
    "organization_guid": "db9522e0-b151-4337-9816-371fd338b5ef",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/db9522e0-b151-4337-9816-371fd338b5ef",
    "developers_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/developers",
    "managers_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/managers",
    "auditors_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/auditors",
    "apps_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/apps",
    "routes_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/routes",
    "domains_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/domains",
    "service_instances_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/service_instances",
    "app_events_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/app_events",
    "events_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/events",
    "security_groups_url": "/v2/spaces/6fb1e53d-f495-448f-aa89-050e89e0e09b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ec5a38ca-6f1d-45e3-a6eb-c3a468696ba8
Content-Length: 1254
X-Content-Type-Options: nosniff