Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/auditors/uaa-id-58

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.0dAns0hfsKiQeTdFsUcYUTDUBslHLmwWVe0-fYLH2KI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/auditors/uaa-id-58" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.0dAns0hfsKiQeTdFsUcYUTDUBslHLmwWVe0-fYLH2KI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "42eee519-c3b9-4ed7-8e5f-e0db7922dfc5",
    "url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5",
    "created_at": "2015-09-11T18:38:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-94",
    "organization_guid": "46b8a8b6-6d78-4082-94a2-ea8afbbb7a64",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/46b8a8b6-6d78-4082-94a2-ea8afbbb7a64",
    "developers_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/developers",
    "managers_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/managers",
    "auditors_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/auditors",
    "apps_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/apps",
    "routes_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/routes",
    "domains_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/domains",
    "service_instances_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/service_instances",
    "app_events_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/app_events",
    "events_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/events",
    "security_groups_url": "/v2/spaces/42eee519-c3b9-4ed7-8e5f-e0db7922dfc5/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f3415ce9-97f3-4718-995e-b8a03a5bc05a
Content-Length: 1276
X-Content-Type-Options: nosniff