Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/auditors/uaa-id-46

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU2fQ.VAsgx88lRsS5K5oEHkwfKb7IAVaIUmScd-lf2PHPO3g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/auditors/uaa-id-46" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU2fQ.VAsgx88lRsS5K5oEHkwfKb7IAVaIUmScd-lf2PHPO3g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "149e96d3-72af-4c6e-8c69-97618f9e80a6",
    "url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6",
    "created_at": "2015-03-18T22:52:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-88",
    "billing_enabled": false,
    "quota_definition_guid": "b3b2d860-ed45-436d-94bb-eca92a3d0747",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b3b2d860-ed45-436d-94bb-eca92a3d0747",
    "spaces_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/spaces",
    "domains_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/domains",
    "private_domains_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/private_domains",
    "users_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/users",
    "managers_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/managers",
    "billing_managers_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/billing_managers",
    "auditors_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/auditors",
    "app_events_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/app_events",
    "space_quota_definitions_url": "/v2/organizations/149e96d3-72af-4c6e-8c69-97618f9e80a6/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1db4260a-1215-4afd-bd04-c9b5005ac430
Content-Length: 1298
X-Content-Type-Options: nosniff