Skip to main content
POST
/
ai
/
{experiment_id}
/
log_artifact
Log Artifact In Experiment
curl --request POST \
  --url 'https://api.example.com/ai/{experiment_id}/log_artifact?HAIQU_API_KEY=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "kind": "text",
  "value": "<unknown>",
  "points": [
    {
      "x": 123,
      "y": 123
    }
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

HAIQU_API_KEY
string
query
required

Path Parameters

experiment_id
string
required

Body

application/json

Artifact submit payload data model.

name
string
required
kind
enum<string>

Artifact type. Use text for strings, value for a single numeric value, timeseries for numeric points in points, list for JSON arrays, dict for JSON objects, and image for a base64 data URL such as data:image/png;base64,....

Available options:
text,
value,
timeseries,
list,
dict,
image
value
any | null

Artifact payload for all kinds except timeseries. Send properly typed JSON values: string for text, number for value, array for list, object for dict, and a base64 data URL string for image. Leave this empty when kind is timeseries.

points
ContextTimeSeriesItem · object[] | null

Time series points to log when kind is timeseries. Each item must have numeric x and y fields. Leave this empty for all other kinds.

Response

Successful Response