Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/users/uaa-id-340

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.KsQBjjQ4rSdL4IqJ1n-OMBJpIqh8n23IRGeFuoRmqfY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/users/uaa-id-340" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.KsQBjjQ4rSdL4IqJ1n-OMBJpIqh8n23IRGeFuoRmqfY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5ea99ea8-f56f-4e34-922b-7245916cab7a",
    "url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a",
    "created_at": "2015-04-15T00:55:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1997",
    "billing_enabled": false,
    "quota_definition_guid": "67ea3b73-1706-427b-b13b-2dfd58830dcb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/67ea3b73-1706-427b-b13b-2dfd58830dcb",
    "spaces_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/spaces",
    "domains_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/domains",
    "private_domains_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/private_domains",
    "users_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/users",
    "managers_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/managers",
    "billing_managers_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/billing_managers",
    "auditors_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/auditors",
    "app_events_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/app_events",
    "space_quota_definitions_url": "/v2/organizations/5ea99ea8-f56f-4e34-922b-7245916cab7a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8f69d421-1226-49d2-bca0-225ecc1e8be1
Content-Length: 1300
X-Content-Type-Options: nosniff