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-471/audited_spaces/19cd7d38-d541-462c-ada6-4a3f0b9a6a67

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-471/audited_spaces/19cd7d38-d541-462c-ada6-4a3f0b9a6a67" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MiIsImVtYWlsIjoiZW1haWwtMzQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTd9.jGzznIVovV51WEUt4yold8RpHLxuw73QG4YtOiQ2J6E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-471",
    "url": "/v2/users/uaa-id-471",
    "created_at": "2016-03-14T22:30:57Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "1e5fc2d8-5ffd-458c-a744-19df7fd0b41a",
    "default_space_url": "/v2/spaces/1e5fc2d8-5ffd-458c-a744-19df7fd0b41a",
    "spaces_url": "/v2/users/uaa-id-471/spaces",
    "organizations_url": "/v2/users/uaa-id-471/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-471/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-471/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-471/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-471/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-471/audited_spaces"
  }
}

Headers

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