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-216/audited_organizations/d2410e4c-8316-4e2a-8e6e-88273bb5cb48

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-216/audited_organizations/d2410e4c-8316-4e2a-8e6e-88273bb5cb48" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzF9.JMreggwjg9Ki9MctshAA2g6fDrtrZcVBtXRxNZsntg0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-216",
    "url": "/v2/users/uaa-id-216",
    "created_at": "2016-04-16T01:23:51Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "88fba57a-e9dc-41bf-9434-306080d34b0c",
    "default_space_url": "/v2/spaces/88fba57a-e9dc-41bf-9434-306080d34b0c",
    "spaces_url": "/v2/users/uaa-id-216/spaces",
    "organizations_url": "/v2/users/uaa-id-216/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-216/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-216/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-216/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-216/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-216/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d2f0b702-843c-4758-a135-1a81289c1a54
Content-Length: 845
X-Content-Type-Options: nosniff