Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/auditors/uaa-id-72

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk2fQ.2rArkS_CZgcVKWW96QRpw5jjtYoghYiqGFKxB-QJgr0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/auditors/uaa-id-72" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk2fQ.2rArkS_CZgcVKWW96QRpw5jjtYoghYiqGFKxB-QJgr0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "faf9bb31-91dd-4f07-8235-79647ead3651",
    "url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651",
    "created_at": "2015-08-31T21:49:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-278",
    "billing_enabled": false,
    "quota_definition_guid": "89dab8cf-9017-4a83-a40a-be724d63d201",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/89dab8cf-9017-4a83-a40a-be724d63d201",
    "spaces_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/spaces",
    "domains_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/domains",
    "private_domains_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/private_domains",
    "users_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/users",
    "managers_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/managers",
    "billing_managers_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/billing_managers",
    "auditors_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/auditors",
    "app_events_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/app_events",
    "space_quota_definitions_url": "/v2/organizations/faf9bb31-91dd-4f07-8235-79647ead3651/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fdb8bfad-4df4-4b6a-84ee-5ace9c91047e
Content-Length: 1299
X-Content-Type-Options: nosniff