Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/auditors/uaa-id-288

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDZ9.Vqx-kjj5IeEWC9RMCb-NnXcB8gFzilkgp3-k9wikPN0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/auditors/uaa-id-288" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDZ9.Vqx-kjj5IeEWC9RMCb-NnXcB8gFzilkgp3-k9wikPN0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8d159f1c-94d7-4ea3-ab58-55ccc4af4d39",
    "url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39",
    "created_at": "2016-03-14T22:30:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2216",
    "billing_enabled": false,
    "quota_definition_guid": "2fd3f9e5-b985-4f12-a24f-cccd952f8d8a",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2fd3f9e5-b985-4f12-a24f-cccd952f8d8a",
    "spaces_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/spaces",
    "domains_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/domains",
    "private_domains_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/private_domains",
    "users_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/users",
    "managers_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/managers",
    "billing_managers_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/billing_managers",
    "auditors_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/auditors",
    "app_events_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/app_events",
    "space_quota_definitions_url": "/v2/organizations/8d159f1c-94d7-4ea3-ab58-55ccc4af4d39/space_quota_definitions"
  }
}

Headers

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