Skip to main content

Editing Existing Proxy

Description: This method modifies configuration of an existing proxy server based on specified parameters.

Request parameters:

ParameterTypeFormatDefaultDescription
proxyIdstringuuid(empty)Unique identifier of the proxy (Required)
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.
folderIdstringuuid(empty)New folder for the proxy. Set to empty to leave the current value unchanged.
namestring(empty)New name for the proxy. Set to null to retain the current name.
proxyUrlstring(empty)Nnew URL for the proxy.
ipChangeUrlstring(empty)New URL for IP rotation.
note

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

Example request:

PUT
CURL:

curl 'http://localhost:8160/v1/proxies/{proxyId}?workspaceId=&folderId=&name=&proxyUri=&ipChangeUrl=' \
--request PUT \
--header 'Api-Token: YOUR_SECRET_TOKEN'

C#:

using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("http://localhost:8160/v1/proxies/{proxyId}?workspaceId=&folderId=&name=&proxyUri=&ipChangeUrl="),
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/proxies/{proxyId}?workspaceId=&folderId=&name=&proxyUri=&ipChangeUrl=

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

Response API:

Response codeResult
200 OKSuccess
500 ErrorInternal Server Error

Success Response (200 OK):

No content returned on successful update.

Error Response (500):

{
"message": null
}