PATCH
/
api
/
v1
/
trajectories
/
{id}
Update Trajectory
curl --request PATCH \
  --url https://agent-platform.staging.hcompanyprod.fr/api/v1/trajectories/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_public": true
}'
{
  "id": "<string>",
  "start_url": "<string>",
  "status": "pending",
  "objective": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "started_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z",
  "viewport_width": 123,
  "viewport_height": 123,
  "error": "<string>",
  "live_view_url": "<string>",
  "is_public": true,
  "events": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Update a trajectory.

is_public
boolean | null

Response

Successful Response

Trajectory of web interactions towards an objective.

id
string
required
status
enum<string>
required

Status of a trajectory execution.

Available options:
pending,
running,
paused,
completed,
timed_out,
failed,
interrupted
objective
string
required
viewport_width
integer
required
viewport_height
integer
required
is_public
boolean
required
start_url
string | null
created_at
string<date-time>
started_at
string<date-time> | null
finished_at
string<date-time> | null
error
string | null
live_view_url
string | null
events
TrajectoryEvent · object[]