Skip to main content

Creating Proxy Folder

Description: This method creates a new proxy folder.

Request parameters:

ParameterTypeFormatDefaultDescription
namestring(empty)The name of the new folder (Required)
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.
locationstring (enum)LocalStorage location (Local or Cloud)

Example request:

POST
CURL:

curl 'http://localhost:8160/v1/proxy_folders?name=&workspaceId=&=' \
--request POST \
--header 'Api-Token: YOUR_SECRET_TOKEN'

C#:

using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("http://localhost:8160/v1/proxy_folders?name=&workspaceId=&="),
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 codeResult
200 OKSuccess
500 ErrorInternal Server Error

Success Response (200 OK):

Returns the ID of the newly created proxy folder:

123e4567-e89b-12d3-a456-426614174000

Error Response (500):

{
"message": null
}