Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/auditors/uaa-id-165

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.rZMEVIRzL5YNMt64ddXAqw8mJI0sT6p6JWtTs0V1Uco
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/auditors/uaa-id-165" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.rZMEVIRzL5YNMt64ddXAqw8mJI0sT6p6JWtTs0V1Uco" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f8120998-cb7e-4b40-bca8-8bff7ac1a1da",
    "url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da",
    "created_at": "2015-05-07T23:37:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1209",
    "billing_enabled": false,
    "quota_definition_guid": "1bcf2007-f1b6-4ea0-b419-dfd8c7ee2905",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1bcf2007-f1b6-4ea0-b419-dfd8c7ee2905",
    "spaces_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/spaces",
    "domains_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/domains",
    "private_domains_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/private_domains",
    "users_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/users",
    "managers_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/managers",
    "billing_managers_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/billing_managers",
    "auditors_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/auditors",
    "app_events_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/app_events",
    "space_quota_definitions_url": "/v2/organizations/f8120998-cb7e-4b40-bca8-8bff7ac1a1da/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a934a1d6-140e-4346-8b6b-744f9debc81f
Content-Length: 1300
X-Content-Type-Options: nosniff