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-315/audited_organizations/6e766c9d-8f8f-4239-a97c-612acc70c942

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-315/audited_organizations/6e766c9d-8f8f-4239-a97c-612acc70c942" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNiIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTh9.datmIG56HOMy_BQHP5vsPOFHfUxX0mZ_rWHiki13BIk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-315",
    "url": "/v2/users/uaa-id-315",
    "created_at": "2015-05-21T01:03:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "bba996cb-9fde-48e8-8689-5f1f26c4fab8",
    "default_space_url": "/v2/spaces/bba996cb-9fde-48e8-8689-5f1f26c4fab8",
    "spaces_url": "/v2/users/uaa-id-315/spaces",
    "organizations_url": "/v2/users/uaa-id-315/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-315/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-315/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-315/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-315/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-315/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2f1b2836-f5f8-452d-8f79-55accdaa0796
Content-Length: 845
X-Content-Type-Options: nosniff