Home
Version 3
Organizations API

Organizations API

Associate Auditor with the Organization by Username

PUT v2/organizations/:guid/auditors

Request

Route

PUT v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.yrx-OVsfkjJBHwO8eVR0Ortdwnxr5jh-xobnFYbJbDc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/auditors" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.yrx-OVsfkjJBHwO8eVR0Ortdwnxr5jh-xobnFYbJbDc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "de5ca13d-3330-4557-9fab-a056ec4f5f1a",
    "url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a",
    "created_at": "2016-01-13T17:29:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-539",
    "billing_enabled": false,
    "quota_definition_guid": "303800bf-be09-4759-a656-56f2e1009c7d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/303800bf-be09-4759-a656-56f2e1009c7d",
    "spaces_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/spaces",
    "domains_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/domains",
    "private_domains_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/private_domains",
    "users_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/users",
    "managers_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/managers",
    "billing_managers_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/billing_managers",
    "auditors_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/auditors",
    "app_events_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/app_events",
    "space_quota_definitions_url": "/v2/organizations/de5ca13d-3330-4557-9fab-a056ec4f5f1a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff