Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNCIsImVtYWlsIjoiZW1haWwtMzA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODV9.7zad2BFwFJbI2SW9UBxcfhRUdMlhoy0FIJKBGe-vmWQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNCIsImVtYWlsIjoiZW1haWwtMzA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODV9.7zad2BFwFJbI2SW9UBxcfhRUdMlhoy0FIJKBGe-vmWQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8a56c0aa-1fe2-450d-a10f-57a7b5fb5297",
    "url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297",
    "created_at": "2016-01-19T19:41:25Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2498",
    "billing_enabled": false,
    "quota_definition_guid": "01e78801-c630-47c3-9d98-0db3fcaa4f14",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/01e78801-c630-47c3-9d98-0db3fcaa4f14",
    "spaces_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/spaces",
    "domains_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/domains",
    "private_domains_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/private_domains",
    "users_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/users",
    "managers_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/managers",
    "billing_managers_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/billing_managers",
    "auditors_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/auditors",
    "app_events_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/app_events",
    "space_quota_definitions_url": "/v2/organizations/8a56c0aa-1fe2-450d-a10f-57a7b5fb5297/space_quota_definitions"
  }
}

Headers

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