Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzJ9.Vf4uzaZtOY2u5pWY7UTwvEjQgLb3Gs45Mvcmmu1EetA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzJ9.Vf4uzaZtOY2u5pWY7UTwvEjQgLb3Gs45Mvcmmu1EetA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "92d28a53-48b4-4d5b-80a9-a066e1c21866",
    "url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866",
    "created_at": "2016-01-26T22:20:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2264",
    "billing_enabled": false,
    "quota_definition_guid": "b0370ad9-c9b5-4353-ac2b-be3a201baf2e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b0370ad9-c9b5-4353-ac2b-be3a201baf2e",
    "spaces_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/spaces",
    "domains_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/domains",
    "private_domains_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/private_domains",
    "users_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/users",
    "managers_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/managers",
    "billing_managers_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/billing_managers",
    "auditors_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/auditors",
    "app_events_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/app_events",
    "space_quota_definitions_url": "/v2/organizations/92d28a53-48b4-4d5b-80a9-a066e1c21866/space_quota_definitions"
  }
}

Headers

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