Deleting Proxies (Bulk)
Please read the Material Usage Rules on this site.
Description: This method sends a bulk delete request to the API to remove specified proxies.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
| body | JSON array | GUID[] | The array of UUIDs containing the proxies to be deleted. |
note
The list of proxies to delete should be specified as an array in the request body using the following format:
[
"884d8f8d-9a4e-4b1e-9dd3-a028d3ae419b",
"d24eba34-12d6-4412-ab20-80fae618c264"
]
Example request:
DELETE
CURL:
curl 'http://localhost:8160/v1/proxies/delete_bulk?workspaceId=' \
--request DELETE \
--header 'Content-Type: application/json' \
--header 'Api-Token: YOUR_SECRET_TOKEN' \
--data '[
""
]'
C#:
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/proxies/delete_bulk?workspaceId="),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
Content = new StringContent("[\n \"\"\n]")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
Cube:
http://localhost:8160/v1/proxies/delete_bulk?workspaceId=

Additionally:
User-Agent: {-Profile.UserAgent-}
Api-Token: Token from UserArea2.

Response API:
| Response code | Result |
|---|---|
200 OK | Success |
500 Error | Internal Server Error |
Success Response (200 OK):
No content returned on successful deletion.
Error Response (500):
{
"message": null
}