Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/auditors/uaa-id-172

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/auditors/uaa-id-172" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.C6Hjd6ubf1pSspEUf6l8FK8dgzoJ0vvMXWoob9D2q5E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "966851e6-f5cb-4d14-97ba-7d7f17b06d39",
    "url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1278",
    "billing_enabled": false,
    "quota_definition_guid": "741d65ad-809f-4d3e-95b4-9582e71f54fb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/741d65ad-809f-4d3e-95b4-9582e71f54fb",
    "spaces_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/spaces",
    "domains_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/domains",
    "private_domains_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/private_domains",
    "users_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/users",
    "managers_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/managers",
    "billing_managers_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/billing_managers",
    "auditors_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/auditors",
    "app_events_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/app_events",
    "space_quota_definitions_url": "/v2/organizations/966851e6-f5cb-4d14-97ba-7d7f17b06d39/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f3f2c667-24bc-49a0-a97a-786c7b45eec6
Content-Length: 1300
X-Content-Type-Options: nosniff