Skip to main content

Creating Proxy Folder

Description: This method creates a new proxy folder. The caller must ensure that the specified workspace ID and location are valid.

Request parameters:

ParameterTypeFormatDefaultDescription
namestring(required)The name of the new folder (required).
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.
locationstringLocalStorage 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 codeResult
200 OKOK
401 UnauthorizedUnauthorized
403 ForbiddenForbidden
500 Internal Server ErrorInternal Server Error

Success Response (200 OK):

123e4567-e89b-12d3-a456-426614174000

Error Response (500):

{
"message": null
}