Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/users/uaa-id-79

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/users/uaa-id-79" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC03MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.kFnJ9UsJDOpwxYduqovwUc8xO1wozB9Z4DL09TikFkk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "61609e04-5970-4e1c-9c54-9ebe82e46a91",
    "url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91",
    "created_at": "2015-08-06T00:36:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-364",
    "billing_enabled": false,
    "quota_definition_guid": "5ea958b3-819d-4312-a228-4a549cca62a0",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5ea958b3-819d-4312-a228-4a549cca62a0",
    "spaces_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/spaces",
    "domains_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/domains",
    "private_domains_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/private_domains",
    "users_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/users",
    "managers_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/managers",
    "billing_managers_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/billing_managers",
    "auditors_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/auditors",
    "app_events_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/app_events",
    "space_quota_definitions_url": "/v2/organizations/61609e04-5970-4e1c-9c54-9ebe82e46a91/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 346e9e64-da64-46c9-99bd-080b7e2a8336
Content-Length: 1299
X-Content-Type-Options: nosniff