Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/auditors/uaa-id-227

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/auditors/uaa-id-227" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDl9.gv1sRYvMAF9VDn9OxqITCodWE2RfSVyBaIgpDXSvyUE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f4c5c076-a0c7-48c3-b750-60b003fceaff",
    "url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff",
    "created_at": "2015-03-05T19:15:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-697",
    "organization_guid": "af96b0c5-822d-4227-b727-08100455e5ee",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/af96b0c5-822d-4227-b727-08100455e5ee",
    "developers_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/developers",
    "managers_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/managers",
    "auditors_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/auditors",
    "apps_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/apps",
    "routes_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/routes",
    "domains_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/domains",
    "service_instances_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/service_instances",
    "app_events_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/app_events",
    "events_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/events",
    "security_groups_url": "/v2/spaces/f4c5c076-a0c7-48c3-b750-60b003fceaff/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9930e0d5-a568-4e59-9c5e-7c5dca030676
Content-Length: 1254
X-Content-Type-Options: nosniff