Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/auditors/uaa-id-67

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY4IiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkyfQ.3ZDWh7pP-CfGr26qG8XItaWDYLlsnjpbvmuIoq9jJ5A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/auditors/uaa-id-67" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY4IiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkyfQ.3ZDWh7pP-CfGr26qG8XItaWDYLlsnjpbvmuIoq9jJ5A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f305b178-6fc1-4b66-bcee-007d73a5f371",
    "url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371",
    "created_at": "2016-04-22T19:33:12Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-109",
    "billing_enabled": false,
    "quota_definition_guid": "c667650b-4405-421f-8dae-dfa5a3f3821b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c667650b-4405-421f-8dae-dfa5a3f3821b",
    "spaces_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/spaces",
    "domains_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/domains",
    "private_domains_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/private_domains",
    "users_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/users",
    "managers_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/managers",
    "billing_managers_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/billing_managers",
    "auditors_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/auditors",
    "app_events_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/app_events",
    "space_quota_definitions_url": "/v2/organizations/f305b178-6fc1-4b66-bcee-007d73a5f371/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ff2314cc-28fc-4f35-afcf-6116052793a3
Content-Length: 1299
X-Content-Type-Options: nosniff