Skip to main content
POST
/
api
/
v1
/
trajectories
/
{id}
/
events
Add Trajectory Events
curl --request POST \
  --url https://agp.hcompany.ai/api/v1/trajectories/{id}/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "data": "<any>",
  "timestamp": "2023-11-07T05:31:56Z"
}
'
"<any>"

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
  • TrajectoryEvent · object
  • TrajectoryEvent · object[]

Event from a trajectory.

type
string
required
data
any
required
timestamp
string<date-time>
required

Response

Successful Response

The response is of type any.