Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization

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

Request

Route

PUT /v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/auditors/uaa-id-58

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgxfQ.Y6-djFEJaOy0YRjJImTvWdRziGOMMLIQa17P7az5R9M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/auditors/uaa-id-58" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgxfQ.Y6-djFEJaOy0YRjJImTvWdRziGOMMLIQa17P7az5R9M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fd77bcec-0620-4a64-a6a1-50bec38f5e9f",
    "url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f",
    "created_at": "2015-05-21T01:03:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-233",
    "billing_enabled": false,
    "quota_definition_guid": "6fa91362-cb16-414b-9c54-979e28186397",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6fa91362-cb16-414b-9c54-979e28186397",
    "spaces_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/spaces",
    "domains_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/domains",
    "private_domains_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/private_domains",
    "users_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/users",
    "managers_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/managers",
    "billing_managers_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/billing_managers",
    "auditors_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/auditors",
    "app_events_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/app_events",
    "space_quota_definitions_url": "/v2/organizations/fd77bcec-0620-4a64-a6a1-50bec38f5e9f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 99218f76-cb3a-4bd2-9dcd-e25eda756a97
Content-Length: 1299
X-Content-Type-Options: nosniff