Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/auditors/uaa-id-94

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/auditors/uaa-id-94" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk1IiwiZW1haWwiOiJlbWFpbC03OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk3fQ.zHVWFTWSvWMIoaGzJThUILs2HKTDGH4X0uZgFkvV_kQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "340e1da9-dabb-4a1c-ae1e-11c268b22493",
    "url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493",
    "created_at": "2015-08-06T00:36:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-389",
    "billing_enabled": false,
    "quota_definition_guid": "1599b94a-2017-4be6-94de-312baf920358",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1599b94a-2017-4be6-94de-312baf920358",
    "spaces_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/spaces",
    "domains_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/domains",
    "private_domains_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/private_domains",
    "users_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/users",
    "managers_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/managers",
    "billing_managers_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/billing_managers",
    "auditors_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/auditors",
    "app_events_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/app_events",
    "space_quota_definitions_url": "/v2/organizations/340e1da9-dabb-4a1c-ae1e-11c268b22493/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 68540fd0-f2d0-4ed8-8f98-ab38f604db9a
Content-Length: 1299
X-Content-Type-Options: nosniff