Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
{authSessionId}
/
update
UpdateAuthSessionStart
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  workspaceId: "123e4567-e89b-12d3-a456-426614174000",
  apiKey: process.env["INTUNED_API_KEY"] ?? "",
});

async function run() {
  const result = await intunedClient.project.authSessions.update.start("my-project", "<id>", {
    parameters: {
      "username": "john.doe",
      "password": "newPassword",
    },
    proxy: "http://proxy.example.com:8080",
  });

  console.log(result);
}

run();
{
  "status": "started",
  "operationId": "aabbccddeeffggh"
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string<uuid>
required

Your workspace ID. How to find it?

projectName
string
required

The name you assigned when creating the Project.

authSessionId
string
required

Authentication session ID. You can obtain it from the Auth Sessions tab in your project details.

Body

application/json

Update AuthSession input schema

parameters
object
required

The parameters to be passed to the API.

Example:
{
"param1": "value1",
"param2": 42,
"param3": true
}
proxy
string | null

Proxy configuration for the job

Example:

"http://username:[email protected]:8080"

createAttempts
integer
default:3

Number of attempts to create a new auth session if the current one is invalid or expired.

Example:

3

checkAttempts
integer
default:3

Number of attempts to check the validity of the auth session before recreating it.

Example:

3

saveTrace
boolean
default:true

Response

201 - application/json

Update AuthSession operation started

status
enum<string>
required
Available options:
started
operationId
string
required