Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

PUT /v2/organizations/:guid/auditors/:auditor_guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.LEe5cZP7V8rNZFUjMBiLRXPhx9g7NC2PmE9abDiqnIU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/auditors/uaa-id-358

cURL

curl "https://api.[your-domain.com]/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/auditors/uaa-id-358" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.LEe5cZP7V8rNZFUjMBiLRXPhx9g7NC2PmE9abDiqnIU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 943107d0-d812-48d1-9858-6794f6daafd9
Content-Length: 1300
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ad9fab11-32d0-451c-b225-0472c2b74ebf",
    "url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf",
    "created_at": "2015-01-27T19:14:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1977",
    "billing_enabled": false,
    "quota_definition_guid": "255c0d99-868d-4846-bc03-d834ad5038d6",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/255c0d99-868d-4846-bc03-d834ad5038d6",
    "spaces_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/spaces",
    "domains_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/domains",
    "private_domains_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/private_domains",
    "users_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/users",
    "managers_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/managers",
    "billing_managers_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/billing_managers",
    "auditors_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/auditors",
    "app_events_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/app_events",
    "space_quota_definitions_url": "/v2/organizations/ad9fab11-32d0-451c-b225-0472c2b74ebf/space_quota_definitions"
  }
}