Auth-Sessions
Update AuthSession - Start
Start updating an AuthSession.
POST
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
{authSessionId}
/
update
UpdateAuthSessionStart
import { IntunedClient } from "@intuned/client";
const client = new IntunedClient({
workspaceId: "123e4567-e89b-12d3-a456-426614174000",
apiKey: process.env["INTUNED_API_KEY"] ?? "",
});
async function run() {
const result = await client.projects.authSessions.update.start(
"my-project",
"<id>",
{
parameters: {
"param1": "value1",
"param2": 42,
"param3": true
},
},
);
console.log(result);
}
run();from intuned_client import IntunedClient
from intuned_client import models
import os
with IntunedClient(
workspace_id="123e4567-e89b-12d3-a456-426614174000",
api_key=os.getenv("INTUNED_API_KEY", ""),
) as client:
res = client.projects.auth_sessions.update.start(
project_name="my-project",
auth_session_id="auth-session-123",
body=models.AuthSessionsUpdateStartRequestBody(
parameters={
"param1": "value1",
"param2": 42,
"param3": True,
},
proxy="http://username:password@proxy.example.com:8080",
createAttempts=3,
checkAttempts=3,
),
)
print(res)curl --request POST \
--url https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"parameters": {
"username": "john.doe",
"password": "newPassword"
},
"proxy": "http://proxy.example.com:8080",
"createAttempts": 3,
"checkAttempts": 3,
"saveTrace": true
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
parameters: {username: 'john.doe', password: 'newPassword'},
proxy: 'http://proxy.example.com:8080',
createAttempts: 3,
checkAttempts: 3,
saveTrace: true
})
};
fetch('https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update', 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://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'parameters' => [
'username' => 'john.doe',
'password' => 'newPassword'
],
'proxy' => 'http://proxy.example.com:8080',
'createAttempts' => 3,
'checkAttempts' => 3,
'saveTrace' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update"
payload := strings.NewReader("{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.post("https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "started",
"operationId": "aabbccddeeffggh"
}Authorizations
API Key used to authenticate your requests. How to create one.
Path Parameters
Your workspace ID. How to find it?
Body
application/json
Update AuthSession input schema
⌘I
UpdateAuthSessionStart
import { IntunedClient } from "@intuned/client";
const client = new IntunedClient({
workspaceId: "123e4567-e89b-12d3-a456-426614174000",
apiKey: process.env["INTUNED_API_KEY"] ?? "",
});
async function run() {
const result = await client.projects.authSessions.update.start(
"my-project",
"<id>",
{
parameters: {
"param1": "value1",
"param2": 42,
"param3": true
},
},
);
console.log(result);
}
run();from intuned_client import IntunedClient
from intuned_client import models
import os
with IntunedClient(
workspace_id="123e4567-e89b-12d3-a456-426614174000",
api_key=os.getenv("INTUNED_API_KEY", ""),
) as client:
res = client.projects.auth_sessions.update.start(
project_name="my-project",
auth_session_id="auth-session-123",
body=models.AuthSessionsUpdateStartRequestBody(
parameters={
"param1": "value1",
"param2": 42,
"param3": True,
},
proxy="http://username:password@proxy.example.com:8080",
createAttempts=3,
checkAttempts=3,
),
)
print(res)curl --request POST \
--url https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"parameters": {
"username": "john.doe",
"password": "newPassword"
},
"proxy": "http://proxy.example.com:8080",
"createAttempts": 3,
"checkAttempts": 3,
"saveTrace": true
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
parameters: {username: 'john.doe', password: 'newPassword'},
proxy: 'http://proxy.example.com:8080',
createAttempts: 3,
checkAttempts: 3,
saveTrace: true
})
};
fetch('https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update', 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://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'parameters' => [
'username' => 'john.doe',
'password' => 'newPassword'
],
'proxy' => 'http://proxy.example.com:8080',
'createAttempts' => 3,
'checkAttempts' => 3,
'saveTrace' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update"
payload := strings.NewReader("{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.post("https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/auth-sessions/{authSessionId}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"parameters\": {\n \"username\": \"john.doe\",\n \"password\": \"newPassword\"\n },\n \"proxy\": \"http://proxy.example.com:8080\",\n \"createAttempts\": 3,\n \"checkAttempts\": 3,\n \"saveTrace\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "started",
"operationId": "aabbccddeeffggh"
}