Skip to main content
POST
/
api
/
v1
/
traces
/
{id}
/
addToDataset
cURL
curl --request POST \
  --url http://studio.premai.io/api/v1/traces/{id}/addToDataset \
  --header 'Authorization: Bearer <token>'
{
  "traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "added",
  "success": true,
  "datapointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Response

success response

traceId
string<uuid>
required

Trace identifier that was processed.

status
enum<string>
required

added when the datapoint is stored immediately, queued when generation is in progress, failed when the operation could not start.

Available options:
added,
queued,
failed
success
boolean
required

true when the action succeeded, false when it failed.

datapointId
string<uuid> | null
required

Identifier of the created datapoint when available.