Preview samples for AI Actions
Last updated
Was this helpful?
Last updated
Was this helpful?
Get a number of random samples to show in the AI Actions screen. If saveConfig
is passed in, then a valid actionId is required in the URL. If you don't need to save the config (e.g. when creating a new action), you can use -1.
/api/{projectId}/ai-actions/{actionId}/preview-samples
Project ID
AI Action ID
If this is passed in, the previewConfig
of the AI action is overwritten (requires actionId to be a valid action).
Type of data to preview. A random subset of this data will be returned.
allData
, unlabeledData
, dataWithoutMetadataKey
, dataWithMetadata
Metadata key to filter on. Required if dataCategory is equal to "dataWithoutMetadataKey" or "dataWithMetadata".
Metadata value to filter on. Required if dataCategory is equal to "dataWithMetadata".
Max. amount of data items to return.