Skip to main content

Updating Browser Profile Proxies (Bulk)

Description: This method updates the proxy settings for one or more browser profiles at once. You can either set a specific proxy server or assign proxies from a container.

Request parameters:

ParameterTypeFormatDefaultDescription
proxyServerIdstringuuid(empty)The proxy server identifier to apply. Use null to remove the proxy from profiles.
proxyContainerIdstringuuid(empty)The proxy container identifier to assign proxies from.
maxProfilesPerProxyintegerint32(empty)Maximum number of profiles per proxy when using proxy container.
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.

Request body:

FieldTypeFormatRequiredDescription
bodyarray[string]uuid(optional)Array of profile IDs to update.

Example request:

POST
CURL:

curl 'http://localhost:8160/v1/profiles/update_proxy_bulk?proxyServerId=123e4567-e89b-12d3-a456-426614174000&proxyContainerId=123e4567-e89b-12d3-a456-426614174000&maxProfilesPerProxy=3&workspaceId=-1' \
--request POST \
--header 'Api-Token: YOUR_SECRET_TOKEN' \

--header 'Content-Type: application/json' \
--data '[
"123e4567-e89b-12d3-a456-426614174000"
]'

C#:

using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("http://localhost:8160/v1/profiles/update_proxy_bulk?proxyServerId=123e4567-e89b-12d3-a456-426614174000&proxyContainerId=123e4567-e89b-12d3-a456-426614174000&maxProfilesPerProxy=3&workspaceId=-1"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
request.Content = new StringContent("[\n \"123e4567-e89b-12d3-a456-426614174000\"\n]", Encoding.UTF8, "application/json");
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}

Cube:

http://localhost:8160/v1/profiles/update_proxy_bulk?proxyServerId=123e4567-e89b-12d3-a456-426614174000&proxyContainerId=123e4567-e89b-12d3-a456-426614174000&maxProfilesPerProxy=3&workspaceId=-1

Body (JSON):

[
"123e4567-e89b-12d3-a456-426614174000"
]

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):

No response body.

Error Response (500):

{
"message": null
}