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-391/audited_spaces/14f4149b-9585-4cc1-89b3-a7ab8500b8ae

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-391/audited_spaces/14f4149b-9585-4cc1-89b3-a7ab8500b8ae" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.Lg8moNTzJr6J0wyt3iRl5cOvLXf-Id0y3BhAEeeD6Kw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-391",
    "url": "/v2/users/uaa-id-391",
    "created_at": "2015-05-07T23:37:27Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f51b83d0-a1ac-4987-9c96-8d1ba45e3efd",
    "default_space_url": "/v2/spaces/f51b83d0-a1ac-4987-9c96-8d1ba45e3efd",
    "spaces_url": "/v2/users/uaa-id-391/spaces",
    "organizations_url": "/v2/users/uaa-id-391/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-391/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-391/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-391/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-391/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-391/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 32b51eb4-d8cf-4da9-89d7-3d52563d2c04
Content-Length: 845
X-Content-Type-Options: nosniff