profiles
Profile Session Config Set
Save the session settings of a profile, replacing any saved before. A session started with this profile applies them unless it sets use_profile_config to false, and the fields sent in that start request take precedence over the saved ones. Only Notte proxies can be saved, never external proxies or credentials, and the settings must be a valid session start on their own.
PUT
/
profiles
/
{profile_id}
/
session-config
Profile Session Config Set
curl --request PUT \
--url https://api.example.com/profiles/{profile_id}/session-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proxies": [
{
"type": "notte",
"id": "<string>",
"city": "<string>",
"sticky_session": "<string>"
}
],
"solve_captchas": true,
"block_ads": true,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
'import requests
url = "https://api.example.com/profiles/{profile_id}/session-config"
payload = {
"proxies": [
{
"type": "notte",
"id": "<string>",
"city": "<string>",
"sticky_session": "<string>"
}
],
"solve_captchas": True,
"block_ads": True,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
proxies: [{type: 'notte', id: '<string>', city: '<string>', sticky_session: '<string>'}],
solve_captchas: true,
block_ads: true,
user_agent: '<string>',
viewport_width: 123,
viewport_height: 123,
idle_timeout_minutes: 123,
max_duration_minutes: 123,
start_url: '<string>'
})
};
fetch('https://api.example.com/profiles/{profile_id}/session-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/profiles/{profile_id}/session-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'proxies' => [
[
'type' => 'notte',
'id' => '<string>',
'city' => '<string>',
'sticky_session' => '<string>'
]
],
'solve_captchas' => true,
'block_ads' => true,
'user_agent' => '<string>',
'viewport_width' => 123,
'viewport_height' => 123,
'idle_timeout_minutes' => 123,
'max_duration_minutes' => 123,
'start_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/profiles/{profile_id}/session-config"
payload := strings.NewReader("{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/profiles/{profile_id}/session-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/profiles/{profile_id}/session-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"profile_id": "<string>",
"session_config": {
"proxies": [
{
"type": "notte",
"id": "<string>",
"country": "ad",
"city": "<string>",
"sticky_session": "<string>"
}
],
"browser_type": "chromium",
"solve_captchas": true,
"block_ads": true,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Was this page helpful?
⌘I
Profile Session Config Set
curl --request PUT \
--url https://api.example.com/profiles/{profile_id}/session-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proxies": [
{
"type": "notte",
"id": "<string>",
"city": "<string>",
"sticky_session": "<string>"
}
],
"solve_captchas": true,
"block_ads": true,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
'import requests
url = "https://api.example.com/profiles/{profile_id}/session-config"
payload = {
"proxies": [
{
"type": "notte",
"id": "<string>",
"city": "<string>",
"sticky_session": "<string>"
}
],
"solve_captchas": True,
"block_ads": True,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
proxies: [{type: 'notte', id: '<string>', city: '<string>', sticky_session: '<string>'}],
solve_captchas: true,
block_ads: true,
user_agent: '<string>',
viewport_width: 123,
viewport_height: 123,
idle_timeout_minutes: 123,
max_duration_minutes: 123,
start_url: '<string>'
})
};
fetch('https://api.example.com/profiles/{profile_id}/session-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/profiles/{profile_id}/session-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'proxies' => [
[
'type' => 'notte',
'id' => '<string>',
'city' => '<string>',
'sticky_session' => '<string>'
]
],
'solve_captchas' => true,
'block_ads' => true,
'user_agent' => '<string>',
'viewport_width' => 123,
'viewport_height' => 123,
'idle_timeout_minutes' => 123,
'max_duration_minutes' => 123,
'start_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/profiles/{profile_id}/session-config"
payload := strings.NewReader("{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/profiles/{profile_id}/session-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/profiles/{profile_id}/session-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proxies\": [\n {\n \"type\": \"notte\",\n \"id\": \"<string>\",\n \"city\": \"<string>\",\n \"sticky_session\": \"<string>\"\n }\n ],\n \"solve_captchas\": true,\n \"block_ads\": true,\n \"user_agent\": \"<string>\",\n \"viewport_width\": 123,\n \"viewport_height\": 123,\n \"idle_timeout_minutes\": 123,\n \"max_duration_minutes\": 123,\n \"start_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"profile_id": "<string>",
"session_config": {
"proxies": [
{
"type": "notte",
"id": "<string>",
"country": "ad",
"city": "<string>",
"sticky_session": "<string>"
}
],
"browser_type": "chromium",
"solve_captchas": true,
"block_ads": true,
"user_agent": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"idle_timeout_minutes": 123,
"max_duration_minutes": 123,
"start_url": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}