Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/auditors

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.1EG1hdf3gNlv07RTOE6zUMPX5OWhHyzPVXAOAyzSt_c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.1EG1hdf3gNlv07RTOE6zUMPX5OWhHyzPVXAOAyzSt_c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "803b4b7f-44c6-41d5-83d7-697a632a6758",
    "url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758",
    "created_at": "2016-05-12T00:45:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-73",
    "billing_enabled": false,
    "quota_definition_guid": "f6c691d2-d232-46b0-9f9a-840f03e0cafc",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f6c691d2-d232-46b0-9f9a-840f03e0cafc",
    "spaces_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/spaces",
    "domains_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/domains",
    "private_domains_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/private_domains",
    "users_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/users",
    "managers_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/managers",
    "billing_managers_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/billing_managers",
    "auditors_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/auditors",
    "app_events_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/app_events",
    "space_quota_definitions_url": "/v2/organizations/803b4b7f-44c6-41d5-83d7-697a632a6758/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e547cbc7-8128-436a-8dfd-00016420c97e
Content-Length: 1298
X-Content-Type-Options: nosniff