Home
Version 3
Users API

Users API

Associate Audited Organization with the User

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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MiIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.ZaotjfRQ6THv-j2jcC_hxxtm7n6nn-nd7b7ZGdrP3YU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/users/uaa-id-271/audited_organizations/ea7ef953-bed9-4573-87f3-bc60076c7227

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-271/audited_organizations/ea7ef953-bed9-4573-87f3-bc60076c7227" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MiIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.ZaotjfRQ6THv-j2jcC_hxxtm7n6nn-nd7b7ZGdrP3YU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 13a1fb5f-c9da-47c7-a1eb-1e470ff86f6a
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-271",
    "url": "/v2/users/uaa-id-271",
    "created_at": "2015-02-13T22:35:00Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "8c517bc3-7b94-4324-9c58-ba3dd8fcc923",
    "default_space_url": "/v2/spaces/8c517bc3-7b94-4324-9c58-ba3dd8fcc923",
    "spaces_url": "/v2/users/uaa-id-271/spaces",
    "organizations_url": "/v2/users/uaa-id-271/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-271/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-271/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-271/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-271/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-271/audited_spaces"
  }
}