Associate User with the Organization by Username
PUT v2/organizations/:guid/users
Request
Route
PUT v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/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/1a93417a-811a-46c7-85fa-4a0507c53f08/users" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMiIsImVtYWlsIjoiZW1haWwtMzEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzl9.dTeQt2pzwG3pAag9hEP6COCO2JfgktwcQWcygQQ3-DY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1a93417a-811a-46c7-85fa-4a0507c53f08",
"url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08",
"created_at": "2015-11-30T23:38:59Z",
"updated_at": null
},
"entity": {
"name": "name-2510",
"billing_enabled": false,
"quota_definition_guid": "4df84394-d265-4b78-a679-c31bb2e5379c",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/4df84394-d265-4b78-a679-c31bb2e5379c",
"spaces_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/spaces",
"domains_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/domains",
"private_domains_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/private_domains",
"users_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/users",
"managers_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/managers",
"billing_managers_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/billing_managers",
"auditors_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/auditors",
"app_events_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/app_events",
"space_quota_definitions_url": "/v2/organizations/1a93417a-811a-46c7-85fa-4a0507c53f08/space_quota_definitions"
}
}
Headers