Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

PUT /v2/spaces/:guid/auditors/:auditor_guid

Request

Route

PUT /v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/auditors/uaa-id-272

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.MasnD1mHbKYspOeyzy9e0vuepd0ZdmBH1I035GXsc5g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/auditors/uaa-id-272" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.MasnD1mHbKYspOeyzy9e0vuepd0ZdmBH1I035GXsc5g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bffe445d-ac7a-4051-97f4-faf63a31b474",
    "url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474",
    "created_at": "2016-05-12T00:45:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1633",
    "organization_guid": "d18cf772-16cb-4bff-b896-3ae17ed0006c",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d18cf772-16cb-4bff-b896-3ae17ed0006c",
    "developers_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/developers",
    "managers_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/managers",
    "auditors_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/auditors",
    "apps_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/apps",
    "routes_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/routes",
    "domains_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/domains",
    "service_instances_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/service_instances",
    "app_events_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/app_events",
    "events_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/events",
    "security_groups_url": "/v2/spaces/bffe445d-ac7a-4051-97f4-faf63a31b474/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b7a2109f-425c-4637-b3e5-238015b07120
Content-Length: 1278
X-Content-Type-Options: nosniff