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-47/audited_spaces/e9d27eaf-bf97-48ea-ad2a-609675f6f6dd

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-47/audited_spaces/e9d27eaf-bf97-48ea-ad2a-609675f6f6dd" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ4IiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjU1fQ.PTLITV5o36xoMu4BaAdfo-yCoZi0gAzJmA1mH64_IM8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-47",
    "url": "/v2/users/uaa-id-47",
    "created_at": "2016-01-19T19:40:55Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "1e9dff51-caf8-4fef-90f4-a7b982e12825",
    "default_space_url": "/v2/spaces/1e9dff51-caf8-4fef-90f4-a7b982e12825",
    "spaces_url": "/v2/users/uaa-id-47/spaces",
    "organizations_url": "/v2/users/uaa-id-47/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-47/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-47/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-47/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-47/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-47/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 836
X-Content-Type-Options: nosniff