Skip to main content

Changing Mobile Proxy IP

Description: This endpoint triggers an IP change for the specified mobile proxy. The proxy must have a valid IP change URL configured.

Request parameters:

ParameterTypeFormatDefaultDescription
proxyIdstringuuid(required)The unique identifier of the proxy for which to change the IP address.
workspaceIdintegerint64-1The identifier of the workspace containing the proxy. Defaults to -1 to use default workspace.

Example request:

POST
CURL:

curl 'http://localhost:8160/v1/proxies/123e4567-e89b-12d3-a456-426614174000/change_ip?workspaceId=-1' \
--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/proxies/123e4567-e89b-12d3-a456-426614174000/change_ip?workspaceId=-1"),
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/123e4567-e89b-12d3-a456-426614174000/change_ip?workspaceId=-1

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
}