Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNCIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MH0.ulU1uglMCgjGyMLVdrYhh8cvBx5Gw5COEMo0iO38ZrI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNCIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MH0.ulU1uglMCgjGyMLVdrYhh8cvBx5Gw5COEMo0iO38ZrI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9eb66223-96e5-4c12-9acd-3850f524948d",
    "url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d",
    "created_at": "2016-04-06T00:17:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-257",
    "billing_enabled": false,
    "quota_definition_guid": "b899d2a2-e8e4-49ea-8d8b-38d739be47bd",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b899d2a2-e8e4-49ea-8d8b-38d739be47bd",
    "spaces_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/spaces",
    "domains_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/domains",
    "private_domains_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/private_domains",
    "users_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/users",
    "managers_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/managers",
    "billing_managers_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/billing_managers",
    "auditors_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/auditors",
    "app_events_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/app_events",
    "space_quota_definitions_url": "/v2/organizations/9eb66223-96e5-4c12-9acd-3850f524948d/space_quota_definitions"
  }
}

Headers

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