Creating Proxy Folder
Please read the Material Usage Rules on this site.
Description: This method creates a new proxy folder. The caller must ensure that the specified workspace ID and location are valid.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| name | string | (required) | The name of the new folder (required). | |
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
| location | string | Local | Storage location "Local" or "Cloud"). Defaults to "Local". |
Example request:
POST
CURL:
curl 'http://localhost:8160/v1/proxy_folders?name=ApiEntity&workspaceId=-1&location=Local' \
--request POST \
--header 'Api-Token: YOUR_SECRET_TOKEN'
C#:
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("http://localhost:8160/v1/proxy_folders?name=ApiEntity&workspaceId=-1&location=Local"),
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?name=&workspaceId=&=

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

Response API:
| Response code | Result |
|---|---|
200 OK | OK |
401 Unauthorized | Unauthorized |
403 Forbidden | Forbidden |
500 Internal Server Error | Internal Server Error |
Success Response (200 OK):
123e4567-e89b-12d3-a456-426614174000
Error Response (500):
{
"message": null
}