Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/auditors/uaa-id-142

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/auditors/uaa-id-142" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjV9.MYQwOlUY5rk1Np3Idf7wg-nRqKfc2fmQ2duWuS3OnxY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c",
    "url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c",
    "created_at": "2015-03-03T00:51:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1089",
    "billing_enabled": false,
    "quota_definition_guid": "20702b80-53d7-4cd0-9243-1914ffc53b18",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/20702b80-53d7-4cd0-9243-1914ffc53b18",
    "spaces_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/spaces",
    "domains_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/domains",
    "private_domains_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/private_domains",
    "users_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/users",
    "managers_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/managers",
    "billing_managers_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/billing_managers",
    "auditors_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/auditors",
    "app_events_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/app_events",
    "space_quota_definitions_url": "/v2/organizations/a36fdbb8-71e4-4dc4-b8e5-1befc5d8079c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0fc65473-9b22-44ca-aa27-ee21bfcb4d0c
Content-Length: 1300
X-Content-Type-Options: nosniff