Users API

Associate Audited Organization with the User

PUT /v2/users/:guid/audited_organizations/:audited_organization_guid

Request

Route

PUT /v2/users/uaa-id-295/audited_organizations/52c32226-3446-4212-929a-c3b67d36f657

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_organization_guid The guid of the audited organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NiIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.S56-kN-jJjWjURpi9lLxgpm1Ic1YNPgg6QIVR1CrDsM
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-295/audited_organizations/52c32226-3446-4212-929a-c3b67d36f657" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NiIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.S56-kN-jJjWjURpi9lLxgpm1Ic1YNPgg6QIVR1CrDsM" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-295",
    "url": "/v2/users/uaa-id-295",
    "created_at": "2016-06-08T16:41:36Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "aa72aeb6-25aa-4cdc-9ef7-9231fe5b136d",
    "default_space_url": "/v2/spaces/aa72aeb6-25aa-4cdc-9ef7-9231fe5b136d",
    "spaces_url": "/v2/users/uaa-id-295/spaces",
    "organizations_url": "/v2/users/uaa-id-295/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-295/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-295/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-295/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-295/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-295/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c4ecabe5-5563-4b8b-8946-e8f4d7eccf16
Content-Length: 845
X-Content-Type-Options: nosniff