Associate User with the Organization by Username
PUT v2/organizations/:guid/users
Request
Route
PUT v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/users
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/users" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.MwgjNPSmIMB_oKO_XEhJ5STOsI1-f4G_9M0rGw_E5N8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "cefb7764-a66c-43ad-86f0-00319b62dc69",
"url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69",
"created_at": "2016-01-13T17:29:38Z",
"updated_at": null
},
"entity": {
"name": "name-489",
"billing_enabled": false,
"quota_definition_guid": "9a198478-7758-44b9-a05f-6c6e77312df7",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/9a198478-7758-44b9-a05f-6c6e77312df7",
"spaces_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/spaces",
"domains_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/domains",
"private_domains_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/private_domains",
"users_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/users",
"managers_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/managers",
"billing_managers_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/billing_managers",
"auditors_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/auditors",
"app_events_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/app_events",
"space_quota_definitions_url": "/v2/organizations/cefb7764-a66c-43ad-86f0-00319b62dc69/space_quota_definitions"
}
}
Headers