Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/auditors/uaa-id-179

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/auditors/uaa-id-179" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxMzl9.QZNvmnqecJ3QSeH9Kki9LiYUPAuG7t_h9oiIeDjXTRQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0926ed1a-2790-4de6-bb57-4899945b0bc4",
    "url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4",
    "created_at": "2015-04-15T00:55:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1238",
    "organization_guid": "e33b1824-459d-4881-babc-8b8e6e9916c3",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/e33b1824-459d-4881-babc-8b8e6e9916c3",
    "developers_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/developers",
    "managers_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/managers",
    "auditors_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/auditors",
    "apps_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/apps",
    "routes_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/routes",
    "domains_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/domains",
    "service_instances_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/service_instances",
    "app_events_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/app_events",
    "events_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/events",
    "security_groups_url": "/v2/spaces/0926ed1a-2790-4de6-bb57-4899945b0bc4/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 79d0075a-8e24-4b77-acc7-f22f01104ba3
Content-Length: 1255
X-Content-Type-Options: nosniff