Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/auditors/uaa-id-80

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/auditors/uaa-id-80" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgxIiwiZW1haWwiOiJlbWFpbC02OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk5fQ.-BnYvQC_g1pMzVu9gFxTh0bHXX0ZLNhxsBWWJrijAck" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f750d2e8-02bf-4cb5-b05c-e28f078434de",
    "url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de",
    "created_at": "2015-03-10T23:11:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-269",
    "organization_guid": "abdc255f-67fe-452c-bbdc-e78e64b041dc",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/abdc255f-67fe-452c-bbdc-e78e64b041dc",
    "developers_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/developers",
    "managers_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/managers",
    "auditors_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/auditors",
    "apps_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/apps",
    "routes_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/routes",
    "domains_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/domains",
    "service_instances_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/service_instances",
    "app_events_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/app_events",
    "events_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/events",
    "security_groups_url": "/v2/spaces/f750d2e8-02bf-4cb5-b05c-e28f078434de/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2df9ea44-4afd-472c-9ab0-0c54d58b1d85
Content-Length: 1254
X-Content-Type-Options: nosniff