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-240/audited_spaces/190c93bb-4c30-41b6-b885-6e4f46458ada

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njl9.2rrpdwwNlKtBSQk0xdP0s3LaXTA7UX5lo_IknVaKeKo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-240/audited_spaces/190c93bb-4c30-41b6-b885-6e4f46458ada" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njl9.2rrpdwwNlKtBSQk0xdP0s3LaXTA7UX5lo_IknVaKeKo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-240",
    "url": "/v2/users/uaa-id-240",
    "created_at": "2015-03-18T22:52:49Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "3a5dae9d-8181-4365-ab94-0a3f70c08a1f",
    "default_space_url": "/v2/spaces/3a5dae9d-8181-4365-ab94-0a3f70c08a1f",
    "spaces_url": "/v2/users/uaa-id-240/spaces",
    "organizations_url": "/v2/users/uaa-id-240/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-240/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-240/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-240/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-240/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-240/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 10315df0-f6df-45ac-a181-fbd029c1dd15
Content-Length: 845
X-Content-Type-Options: nosniff