Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username (experimental)

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/auditors

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
auditor_guid The guid of the user
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.M4oAAuCCM9tpYb6-39V7yaoeyUPJeY2DyId-UJz_njI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.M4oAAuCCM9tpYb6-39V7yaoeyUPJeY2DyId-UJz_njI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0e9f190c-c044-472a-a217-7cd064f144dc",
    "url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc",
    "created_at": "2015-09-11T18:38:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-316",
    "billing_enabled": false,
    "quota_definition_guid": "fa05b0fb-cbec-4ec0-8d73-9c12a63cad84",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fa05b0fb-cbec-4ec0-8d73-9c12a63cad84",
    "spaces_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/spaces",
    "domains_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/domains",
    "private_domains_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/private_domains",
    "users_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/users",
    "managers_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/managers",
    "billing_managers_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/billing_managers",
    "auditors_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/auditors",
    "app_events_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/app_events",
    "space_quota_definitions_url": "/v2/organizations/0e9f190c-c044-472a-a217-7cd064f144dc/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c4136d73-c476-4c63-b346-851ac9b72777
Content-Length: 1299
X-Content-Type-Options: nosniff