Home
Version 3
Users API

Users API

Associate Audited Space with the User

PUT /v2/users/:guid/audited_spaces/:audited_space_guid

Request

Route

PUT /v2/users/uaa-id-202/audited_spaces/65b1c488-bb7f-4daf-9351-88f772118728

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_space_guid The guid of the audited space

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.EWeFKbEpfcbAp_W6uwon6nmdgouugBIqEdxgP-C1gSI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-202/audited_spaces/65b1c488-bb7f-4daf-9351-88f772118728" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.EWeFKbEpfcbAp_W6uwon6nmdgouugBIqEdxgP-C1gSI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-202",
    "url": "/v2/users/uaa-id-202",
    "created_at": "2015-07-27T22:43:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "60e65e02-2082-4a45-bd25-6de103d7065a",
    "default_space_url": "/v2/spaces/60e65e02-2082-4a45-bd25-6de103d7065a",
    "spaces_url": "/v2/users/uaa-id-202/spaces",
    "organizations_url": "/v2/users/uaa-id-202/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-202/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-202/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-202/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-202/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-202/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 87cf4ca1-193e-4ebf-89ee-7cc905c73f77
Content-Length: 845
X-Content-Type-Options: nosniff