Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/auditors/uaa-id-213

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/auditors/uaa-id-213" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNCIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.rZusp1iB4a9jbH7mI4OWud_ylCdJZzhuUqL96hdYsNk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c80a8da0-17cb-4bca-9e5b-5f243baae8d7",
    "url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7",
    "created_at": "2015-03-03T00:51:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1282",
    "organization_guid": "3aa7b2e9-eee9-4218-ba3f-96404a4d4609",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/3aa7b2e9-eee9-4218-ba3f-96404a4d4609",
    "developers_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/developers",
    "managers_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/managers",
    "auditors_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/auditors",
    "apps_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/apps",
    "routes_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/routes",
    "domains_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/domains",
    "service_instances_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/service_instances",
    "app_events_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/app_events",
    "events_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/events",
    "security_groups_url": "/v2/spaces/c80a8da0-17cb-4bca-9e5b-5f243baae8d7/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fdcee9df-2682-435d-9bfc-6ab7841194c4
Content-Length: 1255
X-Content-Type-Options: nosniff