Skip to main content

Deleting Proxy Folder

Description: This method deletes a proxy folder. The parameter proxyFolderId must match the existing folder within the specified workspace.

Request parameters:

ParameterTypeFormatDefaultDescription
proxyFolderIdstringuuid(required)The identifier of the proxy folder to be deleted (required).
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.
note

The ID of the proxy folder to delete should be specified inside curly braces { } in the URL path.

Example request:

DELETE
CURL:

curl 'http://localhost:8160/v1/proxy_folders/123e4567-e89b-12d3-a456-426614174000?workspaceId=-1' \
--request DELETE \
--header 'Api-Token: YOUR_SECRET_TOKEN'

C#:

using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/proxy_folders/123e4567-e89b-12d3-a456-426614174000?workspaceId=-1"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}

Cube:

http://localhost:8160/v1/proxy_folders/{proxyFolderId}?workspaceId=

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

Response API:

Response codeResult
200 OKOK
401 UnauthorizedUnauthorized
403 ForbiddenForbidden
500 Internal Server ErrorInternal Server Error

Success Response (200 OK):

No response body.

Error Response (500):

{
"message": null
}