Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space by Username

PUT v2/spaces/:guid/auditors

Request

Route

PUT v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/auditors

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.8sqdkdlortycxmmlWJrP14DXgBEpMhrIHFnrZlwIw8w
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.8sqdkdlortycxmmlWJrP14DXgBEpMhrIHFnrZlwIw8w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c0ecc793-4a59-491e-801c-54fe215b7423",
    "url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423",
    "created_at": "2015-10-13T17:31:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-96",
    "organization_guid": "3371eda5-5cbf-4a84-bce4-54a7b2eba68e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3371eda5-5cbf-4a84-bce4-54a7b2eba68e",
    "developers_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/developers",
    "managers_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/managers",
    "auditors_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/auditors",
    "apps_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/apps",
    "routes_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/routes",
    "domains_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/domains",
    "service_instances_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/service_instances",
    "app_events_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/app_events",
    "events_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/events",
    "security_groups_url": "/v2/spaces/c0ecc793-4a59-491e-801c-54fe215b7423/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 67e8cfd3-f5f3-4345-8383-43358d88f7c9
Content-Length: 1276
X-Content-Type-Options: nosniff