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-21/audited_organizations/da04838e-59b5-44de-bace-65daf4d532fc

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0xMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMyfQ.V29WL4Lhe3IAUAfESq747QF27n5d-W5qburPce-fot4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-21/audited_organizations/da04838e-59b5-44de-bace-65daf4d532fc" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0xMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMyfQ.V29WL4Lhe3IAUAfESq747QF27n5d-W5qburPce-fot4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-21",
    "url": "/v2/users/uaa-id-21",
    "created_at": "2015-04-15T00:55:32Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "2168e7eb-deca-456b-b92e-870d607de858",
    "default_space_url": "/v2/spaces/2168e7eb-deca-456b-b92e-870d607de858",
    "spaces_url": "/v2/users/uaa-id-21/spaces",
    "organizations_url": "/v2/users/uaa-id-21/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-21/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-21/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-21/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-21/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-21/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 861d4835-9f32-4b1f-824a-96e512077229
Content-Length: 836
X-Content-Type-Options: nosniff