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-49/audited_spaces/a581aa53-7e73-4b60-8440-5119576a6502

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-49/audited_spaces/a581aa53-7e73-4b60-8440-5119576a6502" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM5fQ.eOsPtw2dvL9Kj5bo9T1LLR3DH22xqxg_jnSsXJMnWb0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-49",
    "url": "/v2/users/uaa-id-49",
    "created_at": "2015-03-05T19:15:39Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "794e32fa-eaee-4677-97b5-e6c7e23250ef",
    "default_space_url": "/v2/spaces/794e32fa-eaee-4677-97b5-e6c7e23250ef",
    "spaces_url": "/v2/users/uaa-id-49/spaces",
    "organizations_url": "/v2/users/uaa-id-49/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-49/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-49/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-49/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-49/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-49/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b888f94f-f6b5-4014-90fa-5ffaf13fabbe
Content-Length: 836
X-Content-Type-Options: nosniff