Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/auditors

Parameters

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

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.rqJmp91NpZKbny6CFT8MZNIoFCLj6kgZo_clLuWydEU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.rqJmp91NpZKbny6CFT8MZNIoFCLj6kgZo_clLuWydEU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5d95895d-d2c9-476e-8a7b-8322f0733e02",
    "url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02",
    "created_at": "2016-03-17T21:41:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-385",
    "billing_enabled": false,
    "quota_definition_guid": "5494209a-6a6c-4c6e-9bca-38df5e446912",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5494209a-6a6c-4c6e-9bca-38df5e446912",
    "spaces_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/spaces",
    "domains_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/domains",
    "private_domains_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/private_domains",
    "users_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/users",
    "managers_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/managers",
    "billing_managers_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/billing_managers",
    "auditors_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/auditors",
    "app_events_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/app_events",
    "space_quota_definitions_url": "/v2/organizations/5d95895d-d2c9-476e-8a7b-8322f0733e02/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff