Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/auditors/uaa-id-402

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMzAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.0szIXoLeraFXI3KbILW9kTnJpfHjKZaLcKRybM9otZo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/auditors/uaa-id-402" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMzAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzF9.0szIXoLeraFXI3KbILW9kTnJpfHjKZaLcKRybM9otZo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "aabfa47e-9f41-464a-9008-7de454ba7a9a",
    "url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a",
    "created_at": "2015-10-15T23:52:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2411",
    "billing_enabled": false,
    "quota_definition_guid": "cd98264d-4c7c-4bf0-aa5c-fa952d5aab33",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/cd98264d-4c7c-4bf0-aa5c-fa952d5aab33",
    "spaces_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/spaces",
    "domains_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/domains",
    "private_domains_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/private_domains",
    "users_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/users",
    "managers_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/managers",
    "billing_managers_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/billing_managers",
    "auditors_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/auditors",
    "app_events_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/app_events",
    "space_quota_definitions_url": "/v2/organizations/aabfa47e-9f41-464a-9008-7de454ba7a9a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5b0ca125-55a1-441d-8714-b9f2ab57a8b5
Content-Length: 1300
X-Content-Type-Options: nosniff