Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/auditors/uaa-id-142

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.71p91Cz_GUMlCr55VxL9T0WVfKtPVmfEZnKdIQeFQWg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/auditors/uaa-id-142" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.71p91Cz_GUMlCr55VxL9T0WVfKtPVmfEZnKdIQeFQWg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6511ef0f-8ba4-48b0-8234-d4fde9156ddc",
    "url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc",
    "created_at": "2015-10-13T17:31:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-281",
    "billing_enabled": false,
    "quota_definition_guid": "e10b15c1-0ca0-401c-bd77-c81005dcacf9",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e10b15c1-0ca0-401c-bd77-c81005dcacf9",
    "spaces_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/spaces",
    "domains_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/domains",
    "private_domains_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/private_domains",
    "users_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/users",
    "managers_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/managers",
    "billing_managers_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/billing_managers",
    "auditors_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/auditors",
    "app_events_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/app_events",
    "space_quota_definitions_url": "/v2/organizations/6511ef0f-8ba4-48b0-8234-d4fde9156ddc/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: de1bff3b-909d-454a-9570-cb6180b66299
Content-Length: 1299
X-Content-Type-Options: nosniff