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-367/audited_organizations/dd7a7356-2029-4ea6-a3a0-aadef50e5b90

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.TCV2TnUIASzXknkY3pzJ-ye_gVDhksQelVx_C-289Fo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-367/audited_organizations/dd7a7356-2029-4ea6-a3a0-aadef50e5b90" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.TCV2TnUIASzXknkY3pzJ-ye_gVDhksQelVx_C-289Fo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-367",
    "url": "/v2/users/uaa-id-367",
    "created_at": "2016-05-12T00:45:25Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "b29e724b-5d5b-4f68-9ff9-5671a29d3c76",
    "default_space_url": "/v2/spaces/b29e724b-5d5b-4f68-9ff9-5671a29d3c76",
    "spaces_url": "/v2/users/uaa-id-367/spaces",
    "organizations_url": "/v2/users/uaa-id-367/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-367/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-367/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-367/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-367/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-367/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ce0b03df-990d-49be-895e-d24c61d780b6
Content-Length: 845
X-Content-Type-Options: nosniff