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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzZ9.3nWWxWaZV8rXOh4EQfgoZGyVBkyXEm5vMGc7HFathiI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/users/uaa-id-251

cURL

curl "https://api.[your-domain.com]/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/users/uaa-id-251" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzZ9.3nWWxWaZV8rXOh4EQfgoZGyVBkyXEm5vMGc7HFathiI" \
	-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: d57ba06b-c61d-4641-b174-0fcdd352a280
Content-Length: 1305
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "825ebcc8-387e-4322-abf0-729fcac50f1b",
    "url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b",
    "created_at": "2014-12-24T01:39:36+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1688",
    "billing_enabled": false,
    "quota_definition_guid": "ead1a293-9bac-4870-85a1-bd892c129073",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ead1a293-9bac-4870-85a1-bd892c129073",
    "spaces_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/spaces",
    "domains_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/domains",
    "private_domains_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/private_domains",
    "users_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/users",
    "managers_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/managers",
    "billing_managers_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/billing_managers",
    "auditors_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/auditors",
    "app_events_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/app_events",
    "space_quota_definitions_url": "/v2/organizations/825ebcc8-387e-4322-abf0-729fcac50f1b/space_quota_definitions"
  }
}