Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/auditors/uaa-id-97

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC03MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjQwfQ.uITOw-vl3qU4r_PEQoHxlhMp9wRGjWNSwPMiQwkkAO0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/auditors/uaa-id-97" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC03MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjQwfQ.uITOw-vl3qU4r_PEQoHxlhMp9wRGjWNSwPMiQwkkAO0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "362f8c9a-faa1-406d-a722-73f338acfaa4",
    "url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4",
    "created_at": "2016-04-06T00:17:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-251",
    "billing_enabled": false,
    "quota_definition_guid": "877008aa-e7ab-4d5f-9ca5-ee3119ef3354",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/877008aa-e7ab-4d5f-9ca5-ee3119ef3354",
    "spaces_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/spaces",
    "domains_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/domains",
    "private_domains_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/private_domains",
    "users_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/users",
    "managers_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/managers",
    "billing_managers_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/billing_managers",
    "auditors_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/auditors",
    "app_events_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/app_events",
    "space_quota_definitions_url": "/v2/organizations/362f8c9a-faa1-406d-a722-73f338acfaa4/space_quota_definitions"
  }
}

Headers

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