Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/auditors/uaa-id-71

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzkwfQ.6Jv8uOkvc0WdD37GwB8FGbglGx4FtvjSafgrqi57iGk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/auditors/uaa-id-71" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzkwfQ.6Jv8uOkvc0WdD37GwB8FGbglGx4FtvjSafgrqi57iGk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "83c4fac5-cd9e-41ee-96df-b4f50fff4aef",
    "url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef",
    "created_at": "2015-07-27T22:43:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-187",
    "billing_enabled": false,
    "quota_definition_guid": "1d18a00b-4e36-412b-9308-2f5f2402e880",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1d18a00b-4e36-412b-9308-2f5f2402e880",
    "spaces_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/spaces",
    "domains_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/domains",
    "private_domains_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/private_domains",
    "users_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/users",
    "managers_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/managers",
    "billing_managers_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/billing_managers",
    "auditors_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/auditors",
    "app_events_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/app_events",
    "space_quota_definitions_url": "/v2/organizations/83c4fac5-cd9e-41ee-96df-b4f50fff4aef/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ed1bd03c-f9b5-4f50-8c8c-3713beb0891f
Content-Length: 1299
X-Content-Type-Options: nosniff