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-148/audited_spaces/6994386b-c9ce-4164-8031-2421394bdac1

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-148/audited_spaces/6994386b-c9ce-4164-8031-2421394bdac1" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OSIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.hVAqqrNq-MNHABPqMwSxblNF_i9YxannuIiXG_jNoXk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-148",
    "url": "/v2/users/uaa-id-148",
    "created_at": "2015-08-06T00:36:38Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a7c990ae-2fb2-4bc9-a29c-a593286b9c83",
    "default_space_url": "/v2/spaces/a7c990ae-2fb2-4bc9-a29c-a593286b9c83",
    "spaces_url": "/v2/users/uaa-id-148/spaces",
    "organizations_url": "/v2/users/uaa-id-148/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-148/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-148/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-148/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-148/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-148/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bf2d774a-a4eb-41e2-aceb-720de74a391c
Content-Length: 845
X-Content-Type-Options: nosniff