Associate Auditor with the Space
PUT /v2/spaces/:guid/auditors/:auditor_guid
Request
Route
PUT /v2/spaces/dc978036-a819-4680-a101-c2609d937d45/auditors/uaa-id-238
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
auditor_guid
|
The guid of the auditor
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/auditors/uaa-id-238" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTF9.9_S__4quPM3wfaFDDPEciKRtQwijdvrLPcUDsEZ90-4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "dc978036-a819-4680-a101-c2609d937d45",
"url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45",
"created_at": "2016-04-06T00:17:31Z",
"updated_at": null
},
"entity": {
"name": "name-935",
"organization_guid": "1b55acd3-aaa8-4971-81f8-2ef9ec4f8a29",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/1b55acd3-aaa8-4971-81f8-2ef9ec4f8a29",
"developers_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/developers",
"managers_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/managers",
"auditors_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/auditors",
"apps_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/apps",
"routes_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/routes",
"domains_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/domains",
"service_instances_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/service_instances",
"app_events_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/app_events",
"events_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/events",
"security_groups_url": "/v2/spaces/dc978036-a819-4680-a101-c2609d937d45/security_groups"
}
}
Headers