Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

PUT /v2/organizations/:guid/users/:user_guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.XbA9ZVNGqiOoXTSYTSd9cG-g4_8iCabiETZU8HoPBu4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/users/uaa-id-365

cURL

curl "https://api.[your-domain.com]/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/users/uaa-id-365" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.XbA9ZVNGqiOoXTSYTSd9cG-g4_8iCabiETZU8HoPBu4" \
	-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: b2d126c2-f08c-42bd-b7f3-67ea64f21a1f
Content-Length: 1300
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "b937e15f-a517-4de5-a01b-887f325608e8",
    "url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8",
    "created_at": "2015-01-27T19:14:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1983",
    "billing_enabled": false,
    "quota_definition_guid": "5eb4bb48-e839-4b9f-a9d6-3049e6cc1a1a",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5eb4bb48-e839-4b9f-a9d6-3049e6cc1a1a",
    "spaces_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/spaces",
    "domains_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/domains",
    "private_domains_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/private_domains",
    "users_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/users",
    "managers_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/managers",
    "billing_managers_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/billing_managers",
    "auditors_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/auditors",
    "app_events_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/app_events",
    "space_quota_definitions_url": "/v2/organizations/b937e15f-a517-4de5-a01b-887f325608e8/space_quota_definitions"
  }
}