Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/users/uaa-id-34

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/users/uaa-id-34" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1IiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQyfQ.m6PuSbn4hbQZRRVgd7L5mG_u-B7SD3sr5tggCF5ZJS0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ba204017-b8d8-4e12-bb0f-58afede89014",
    "url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014",
    "created_at": "2015-03-20T18:27:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-143",
    "billing_enabled": false,
    "quota_definition_guid": "1e97f6ff-5c37-4907-85d9-b05019239d22",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1e97f6ff-5c37-4907-85d9-b05019239d22",
    "spaces_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/spaces",
    "domains_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/domains",
    "private_domains_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/private_domains",
    "users_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/users",
    "managers_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/managers",
    "billing_managers_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/billing_managers",
    "auditors_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/auditors",
    "app_events_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/app_events",
    "space_quota_definitions_url": "/v2/organizations/ba204017-b8d8-4e12-bb0f-58afede89014/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f7791a3f-a9f3-46bd-87fe-8b2d7ba25d87
Content-Length: 1299
X-Content-Type-Options: nosniff