Home
Version 3
Users API

Users API

Associate Audited Organization with the User

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

Request

Route

PUT /v2/users/uaa-id-242/audited_organizations/d41960f0-1fae-4eae-9763-472e51a6e717

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5MzZ9.dAfZmCmDMph78ys4sK0AeH-uA5p9BaJTAa8UA28qM_4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-242/audited_organizations/d41960f0-1fae-4eae-9763-472e51a6e717" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5MzZ9.dAfZmCmDMph78ys4sK0AeH-uA5p9BaJTAa8UA28qM_4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-242",
    "url": "/v2/users/uaa-id-242",
    "created_at": "2015-10-07T00:35:36Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0ab65673-fa4e-42bb-9cc1-852c9f95f90e",
    "default_space_url": "/v2/spaces/0ab65673-fa4e-42bb-9cc1-852c9f95f90e",
    "spaces_url": "/v2/users/uaa-id-242/spaces",
    "organizations_url": "/v2/users/uaa-id-242/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-242/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-242/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-242/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-242/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-242/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 234d53f1-3f05-489f-a228-4b50e0cf2443
Content-Length: 845
X-Content-Type-Options: nosniff