Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/users/uaa-id-198

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.9VjoFlmomAvui5psdDa47q0jGETwvLUZRZPWaF9wkr4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/users/uaa-id-198" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.9VjoFlmomAvui5psdDa47q0jGETwvLUZRZPWaF9wkr4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0808e578-8178-4c30-bbf5-0a9e10e56b5c",
    "url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-837",
    "billing_enabled": false,
    "quota_definition_guid": "6120061a-f558-458a-87cd-84c42831186f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6120061a-f558-458a-87cd-84c42831186f",
    "spaces_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/spaces",
    "domains_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/domains",
    "private_domains_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/private_domains",
    "users_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/users",
    "managers_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/managers",
    "billing_managers_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/billing_managers",
    "auditors_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/auditors",
    "app_events_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/app_events",
    "space_quota_definitions_url": "/v2/organizations/0808e578-8178-4c30-bbf5-0a9e10e56b5c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a39b8d9-2342-4918-ae52-f0ec40abd226
Content-Length: 1299
X-Content-Type-Options: nosniff