Associate Auditor with the Space by Username
PUT v2/spaces/:guid/auditors
Request
Route
PUT v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/auditors
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
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/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDN9.dmi6RbwMqcnDmMID51Cc9F-ZMznB6UImXImyOg1bYws" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d0a1ed4d-388e-4b8b-ab98-506a11337cf2",
"url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2",
"created_at": "2015-11-03T00:54:03Z",
"updated_at": null
},
"entity": {
"name": "name-1079",
"organization_guid": "5e43e2cd-caf6-4986-8bb1-6cf7aedbdad5",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/5e43e2cd-caf6-4986-8bb1-6cf7aedbdad5",
"developers_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/developers",
"managers_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/managers",
"auditors_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/auditors",
"apps_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/apps",
"routes_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/routes",
"domains_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/domains",
"service_instances_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/service_instances",
"app_events_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/app_events",
"events_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/events",
"security_groups_url": "/v2/spaces/d0a1ed4d-388e-4b8b-ab98-506a11337cf2/security_groups"
}
}
Headers