Home
Version 3
Users API

Users API

Associate Audited Organization with the User

PUT /v2/users/:guid/audited_organizations/:audited_organization_guid

Request

Route

PUT /v2/users/uaa-id-387/audited_organizations/217faa48-bd7f-40aa-8c14-6a27c967fdf9

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_organization_guid The guid of the audited organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.AV_XHglGW2SOuCmxTb8xUj24Hg6nS790B0CGL8g_vaU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-387/audited_organizations/217faa48-bd7f-40aa-8c14-6a27c967fdf9" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.AV_XHglGW2SOuCmxTb8xUj24Hg6nS790B0CGL8g_vaU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-387",
    "url": "/v2/users/uaa-id-387",
    "created_at": "2015-09-11T18:39:09Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a7eb79e1-dbcd-4061-a9f7-1d1add75a157",
    "default_space_url": "/v2/spaces/a7eb79e1-dbcd-4061-a9f7-1d1add75a157",
    "spaces_url": "/v2/users/uaa-id-387/spaces",
    "organizations_url": "/v2/users/uaa-id-387/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-387/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-387/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-387/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-387/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-387/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d4dfa3eb-37d1-4d44-8a99-c18297a311f3
Content-Length: 845
X-Content-Type-Options: nosniff