Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/auditors/uaa-id-236

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.Av6v3-G86OXIc1tVPxyEYliolRVAYpTTEFdHYM7KoPg
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/auditors/uaa-id-236" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.Av6v3-G86OXIc1tVPxyEYliolRVAYpTTEFdHYM7KoPg" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "beb082da-25e1-4329-88c9-bea2d809729d",
    "url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d",
    "created_at": "2016-06-08T16:41:34Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1753",
    "billing_enabled": false,
    "quota_definition_guid": "2a6ff67b-6177-43c6-918a-c8d3bbaf0414",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2a6ff67b-6177-43c6-918a-c8d3bbaf0414",
    "spaces_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/spaces",
    "domains_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/domains",
    "private_domains_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/private_domains",
    "users_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/users",
    "managers_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/managers",
    "billing_managers_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/billing_managers",
    "auditors_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/auditors",
    "app_events_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/app_events",
    "space_quota_definitions_url": "/v2/organizations/beb082da-25e1-4329-88c9-bea2d809729d/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 79f85ba7-162e-493c-bc27-8c57dc3598bf
Content-Length: 1300
X-Content-Type-Options: nosniff