Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/auditors/uaa-id-429

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/auditors/uaa-id-429" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODV9.lMYg6ylK2Y3G7Z5ubzRXAsomuMmAm_pQO2rJtcEtkLE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b2897c37-ac1a-4df7-9279-b152acd41b3d",
    "url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d",
    "created_at": "2016-01-19T19:41:25Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2494",
    "billing_enabled": false,
    "quota_definition_guid": "eb6fc60f-acb5-4386-a7de-fe516afc1abe",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/eb6fc60f-acb5-4386-a7de-fe516afc1abe",
    "spaces_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/spaces",
    "domains_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/domains",
    "private_domains_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/private_domains",
    "users_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/users",
    "managers_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/managers",
    "billing_managers_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/billing_managers",
    "auditors_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/auditors",
    "app_events_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/app_events",
    "space_quota_definitions_url": "/v2/organizations/b2897c37-ac1a-4df7-9279-b152acd41b3d/space_quota_definitions"
  }
}

Headers

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