Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDd9.WrT-htm9LF5Y24xcBZ91G9p423mKj-eVcAReepdsQgI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDd9.WrT-htm9LF5Y24xcBZ91G9p423mKj-eVcAReepdsQgI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "69fbad2e-5de4-4a8d-8b37-5167ae89ec6b",
    "url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b",
    "created_at": "2016-03-14T22:30:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2224",
    "billing_enabled": false,
    "quota_definition_guid": "f4e41c5c-c770-4d72-bc77-172cb221b398",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f4e41c5c-c770-4d72-bc77-172cb221b398",
    "spaces_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/spaces",
    "domains_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/domains",
    "private_domains_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/private_domains",
    "users_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/users",
    "managers_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/managers",
    "billing_managers_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/billing_managers",
    "auditors_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/auditors",
    "app_events_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/app_events",
    "space_quota_definitions_url": "/v2/organizations/69fbad2e-5de4-4a8d-8b37-5167ae89ec6b/space_quota_definitions"
  }
}

Headers

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