Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.Jxrllui7LwqQC_AuVVbfcjR48UA_YS0VWqT1pVhT7oM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.Jxrllui7LwqQC_AuVVbfcjR48UA_YS0VWqT1pVhT7oM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a",
    "url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a",
    "created_at": "2015-10-13T17:31:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-283",
    "billing_enabled": false,
    "quota_definition_guid": "289f6139-2615-4c65-9c65-5432b947201b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/289f6139-2615-4c65-9c65-5432b947201b",
    "spaces_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/spaces",
    "domains_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/domains",
    "private_domains_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/private_domains",
    "users_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/users",
    "managers_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/managers",
    "billing_managers_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/billing_managers",
    "auditors_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/auditors",
    "app_events_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/app_events",
    "space_quota_definitions_url": "/v2/organizations/b5c2c3a7-8b06-4376-9f8e-59bd9468dd7a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: baa016bf-1cff-46af-b3b9-ab3d86a72bb0
Content-Length: 1299
X-Content-Type-Options: nosniff