Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space by Username

PUT v2/spaces/:guid/auditors

Request

Route

PUT v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.cBYxckqYffRQWBz5nQaBH8BA86if2VUhq8dDAVT8M2A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.cBYxckqYffRQWBz5nQaBH8BA86if2VUhq8dDAVT8M2A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ce03ede9-4d71-440b-ac01-8454a8956204",
    "url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204",
    "created_at": "2016-06-08T16:41:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2086",
    "organization_guid": "f5085fa8-083e-49a1-b814-1925a94f298b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f5085fa8-083e-49a1-b814-1925a94f298b",
    "developers_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/developers",
    "managers_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/managers",
    "auditors_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/auditors",
    "apps_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/apps",
    "routes_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/routes",
    "domains_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/domains",
    "service_instances_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/service_instances",
    "app_events_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/app_events",
    "events_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/events",
    "security_groups_url": "/v2/spaces/ce03ede9-4d71-440b-ac01-8454a8956204/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 84efa4f5-34e8-4d04-be10-e2dfa8f61678
Content-Length: 1278
X-Content-Type-Options: nosniff