Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/auditors/uaa-id-249

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.FoBFoQK6Ty-cz1MK9vJNcsHLOpyz6EtO1cuQdki9Y-o
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/auditors/uaa-id-249" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.FoBFoQK6Ty-cz1MK9vJNcsHLOpyz6EtO1cuQdki9Y-o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7077261c-bd76-4fb9-8c1a-62c83dcf6914",
    "url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914",
    "created_at": "2015-12-22T18:28:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-772",
    "billing_enabled": false,
    "quota_definition_guid": "0e922983-0bf5-40b3-8ee9-a4ed5d46994c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0e922983-0bf5-40b3-8ee9-a4ed5d46994c",
    "spaces_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/spaces",
    "domains_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/domains",
    "private_domains_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/private_domains",
    "users_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/users",
    "managers_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/managers",
    "billing_managers_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/billing_managers",
    "auditors_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/auditors",
    "app_events_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/app_events",
    "space_quota_definitions_url": "/v2/organizations/7077261c-bd76-4fb9-8c1a-62c83dcf6914/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff