Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/auditors/uaa-id-390

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjJ9.zTa3WyCezzeqrhWJpSx_ii4d8Eg-k0NmV7MjDtH5s-4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/auditors/uaa-id-390" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjJ9.zTa3WyCezzeqrhWJpSx_ii4d8Eg-k0NmV7MjDtH5s-4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b681369e-d2c9-4aaf-9143-a44d242713ac",
    "url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac",
    "created_at": "2015-06-04T00:05:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2215",
    "billing_enabled": false,
    "quota_definition_guid": "b6504869-3d01-4c3e-8da9-8d737afa9c94",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b6504869-3d01-4c3e-8da9-8d737afa9c94",
    "spaces_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/spaces",
    "domains_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/domains",
    "private_domains_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/private_domains",
    "users_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/users",
    "managers_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/managers",
    "billing_managers_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/billing_managers",
    "auditors_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/auditors",
    "app_events_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/app_events",
    "space_quota_definitions_url": "/v2/organizations/b681369e-d2c9-4aaf-9143-a44d242713ac/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9ca320ee-3b1d-414d-8a5c-f0e76ba233de
Content-Length: 1300
X-Content-Type-Options: nosniff