Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

PUT /v2/spaces/:guid/managers/:manager_guid

Request

Route

PUT /v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/managers/uaa-id-157

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OCIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.hOJ0rDGnJ_hQru66IWeMrV7z3g9KQ-bwcGJixIIXQII
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/managers/uaa-id-157" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OCIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.hOJ0rDGnJ_hQru66IWeMrV7z3g9KQ-bwcGJixIIXQII" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "712624b4-438a-4e50-ae83-a5ee53a9cbbf",
    "url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf",
    "created_at": "2016-04-16T01:23:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-302",
    "organization_guid": "a9fb2d5b-e2b8-454b-9858-b299dfb0b8cd",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/a9fb2d5b-e2b8-454b-9858-b299dfb0b8cd",
    "developers_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/developers",
    "managers_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/managers",
    "auditors_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/auditors",
    "apps_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/apps",
    "routes_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/routes",
    "domains_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/domains",
    "service_instances_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/service_instances",
    "app_events_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/app_events",
    "events_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/events",
    "security_groups_url": "/v2/spaces/712624b4-438a-4e50-ae83-a5ee53a9cbbf/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: de7a9e15-ce6d-4db2-91f5-f1914d8ba9e6
Content-Length: 1277
X-Content-Type-Options: nosniff