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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTR9.jMx5S-9I1HaOvyVMNbfNHhZqhFuQPL_t0-flE8N5IaY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/users/uaa-id-360

cURL

curl "https://api.[your-domain.com]/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/users/uaa-id-360" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTR9.jMx5S-9I1HaOvyVMNbfNHhZqhFuQPL_t0-flE8N5IaY" \
	-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: af030ba7-aaf6-4f19-80a3-26ec9f9aa89b
Content-Length: 1305
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7ce51a92-0167-4534-a997-a46b5be32c16",
    "url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16",
    "created_at": "2015-01-20T01:52:34+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1960",
    "billing_enabled": false,
    "quota_definition_guid": "ec0b9017-ea4a-4787-b517-6441ea5ff97c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ec0b9017-ea4a-4787-b517-6441ea5ff97c",
    "spaces_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/spaces",
    "domains_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/domains",
    "private_domains_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/private_domains",
    "users_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/users",
    "managers_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/managers",
    "billing_managers_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/billing_managers",
    "auditors_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/auditors",
    "app_events_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/app_events",
    "space_quota_definitions_url": "/v2/organizations/7ce51a92-0167-4534-a997-a46b5be32c16/space_quota_definitions"
  }
}