Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.tDMzbR1M3HjbWxPnru_f7Jlc40UfJRV05FsHv79b5Po
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.tDMzbR1M3HjbWxPnru_f7Jlc40UfJRV05FsHv79b5Po" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a858001e-c9a4-48aa-be9a-cefa4485aa51",
    "url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51",
    "created_at": "2015-10-15T23:52:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2407",
    "billing_enabled": false,
    "quota_definition_guid": "1ef63530-0a24-4360-8845-01ccf9930bb3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1ef63530-0a24-4360-8845-01ccf9930bb3",
    "spaces_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/spaces",
    "domains_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/domains",
    "private_domains_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/private_domains",
    "users_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/users",
    "managers_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/managers",
    "billing_managers_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/billing_managers",
    "auditors_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/auditors",
    "app_events_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/app_events",
    "space_quota_definitions_url": "/v2/organizations/a858001e-c9a4-48aa-be9a-cefa4485aa51/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b9f9a47d-82fb-44df-93ab-1ea9f0065c90
Content-Length: 1300
X-Content-Type-Options: nosniff