Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/auditors/uaa-id-363

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.hQgJcoxUyUYgl2Av-Hvm7D5rBQiIgVmk9SrIJcJYptI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/auditors/uaa-id-363" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.hQgJcoxUyUYgl2Av-Hvm7D5rBQiIgVmk9SrIJcJYptI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "622bbb41-8e72-4cd6-9062-3d867576e272",
    "url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272",
    "created_at": "2015-07-06T23:23:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2181",
    "billing_enabled": false,
    "quota_definition_guid": "89abe95f-6afc-47e1-9ea9-dff0861f3f94",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/89abe95f-6afc-47e1-9ea9-dff0861f3f94",
    "spaces_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/spaces",
    "domains_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/domains",
    "private_domains_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/private_domains",
    "users_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/users",
    "managers_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/managers",
    "billing_managers_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/billing_managers",
    "auditors_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/auditors",
    "app_events_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/app_events",
    "space_quota_definitions_url": "/v2/organizations/622bbb41-8e72-4cd6-9062-3d867576e272/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 560b19b7-6364-4791-8d15-bd5611110b0e
Content-Length: 1300
X-Content-Type-Options: nosniff