Associate Auditor with the Space by Username
PUT v2/spaces/:guid/auditors
Request
Route
PUT v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/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/c979c452-371c-44ed-a170-8267d3b62fa9/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyIiwiZW1haWwiOiJlbWFpbC04QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2NzV9.RKov0UVlYivxOmqZKXF4ngqCAboL2qgJhK_TgG347Aw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c979c452-371c-44ed-a170-8267d3b62fa9",
"url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9",
"created_at": "2015-12-22T18:27:55Z",
"updated_at": null
},
"entity": {
"name": "name-26",
"organization_guid": "b23fc6db-2714-468e-84de-4a0d1748da97",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/b23fc6db-2714-468e-84de-4a0d1748da97",
"developers_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/developers",
"managers_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/managers",
"auditors_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/auditors",
"apps_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/apps",
"routes_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/routes",
"domains_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/domains",
"service_instances_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/service_instances",
"app_events_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/app_events",
"events_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/events",
"security_groups_url": "/v2/spaces/c979c452-371c-44ed-a170-8267d3b62fa9/security_groups"
}
}
Headers