Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/auditors/uaa-id-381

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MiIsImVtYWlsIjoiZW1haWwtMjY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.xhUS-xX_VKTIkerLrUv6cqNSxDu2ZqhfowMNUetmyOA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/auditors/uaa-id-381" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MiIsImVtYWlsIjoiZW1haWwtMjY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.xhUS-xX_VKTIkerLrUv6cqNSxDu2ZqhfowMNUetmyOA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "594c1fa9-caed-454b-9ed8-643a093ff91d",
    "url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d",
    "created_at": "2016-06-08T16:41:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2095",
    "organization_guid": "68ad2ce5-f310-463c-a337-dfa55bda5ea4",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/68ad2ce5-f310-463c-a337-dfa55bda5ea4",
    "developers_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/developers",
    "managers_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/managers",
    "auditors_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/auditors",
    "apps_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/apps",
    "routes_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/routes",
    "domains_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/domains",
    "service_instances_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/service_instances",
    "app_events_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/app_events",
    "events_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/events",
    "security_groups_url": "/v2/spaces/594c1fa9-caed-454b-9ed8-643a093ff91d/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 23d84e3c-f7d0-46ad-bac9-b2a8521521e8
Content-Length: 1278
X-Content-Type-Options: nosniff