Deleting Profile Folder with Contents
Please read the Material Usage Rules on this site.
Description: This method deletes the specified profile folder together with all profiles it contains. The profileFolderId value must match an existing folder in the specified workspace.
warning
This operation deletes both the folder and every profile inside it.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| profileFolderId | string | uuid | (required) | Unique identifier of the profile folder to delete. |
| workspaceId | integer | int64 | -1 | The identifier of the workspace containing the profile folder. -1 means the default workspace. |
Example request:
DELETE
CURL:
curl 'http://localhost:8160/v1/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?workspaceId=-1' \
--request DELETE \
--header 'Api-Token: YOUR_SECRET_TOKEN'
C#:
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?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/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?workspaceId=-1
Additionally:
User-Agent: {-Profile.UserAgent-}
Api-Token: Token from UserArea2.
Response API:
| Response code | Result |
|---|---|
200 OK | OK |
401 Unauthorized | Unauthorized |
403 Forbidden | Forbidden |
409 Conflict | Resource state conflict |
422 Unprocessable Content | The request cannot be processed |
423 Locked | The resource is locked |
500 Internal Server Error | Internal Server Error |
Success Response (200 OK):
No response body.
Error Response:
{
"message": null
}