Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/users/uaa-id-85

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/users/uaa-id-85" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.XZSC48ESA5psoblPg7PdYVcH5LDNTKk3gVPKkiom3Mc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e600d00d-cd89-4142-b9aa-9d7018aa54d4",
    "url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4",
    "created_at": "2016-05-12T00:45:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-107",
    "billing_enabled": false,
    "quota_definition_guid": "ca622967-4a69-4243-a68b-cba340de73f9",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ca622967-4a69-4243-a68b-cba340de73f9",
    "spaces_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/spaces",
    "domains_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/domains",
    "private_domains_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/private_domains",
    "users_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/users",
    "managers_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/managers",
    "billing_managers_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/billing_managers",
    "auditors_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/auditors",
    "app_events_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/app_events",
    "space_quota_definitions_url": "/v2/organizations/e600d00d-cd89-4142-b9aa-9d7018aa54d4/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2f43899e-9965-4524-85c0-dd38d73e3116
Content-Length: 1299
X-Content-Type-Options: nosniff