Skip to main content
POST
Add a new model under a project

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Name of the model

project_id
string<uuid>
required

UUID format unique identifier for the project the model is added in

input_type
enum<string>
required

Enumeration of different model input types.

Available options:
text,
structured
task
enum<string>
required

Enumeration of different types of model tasks.

Available options:
binary_classification,
multiclass_classification,
regression,
ranking,
not_set,
llm
schema
object
required

Model schema with the details of each column

spec
object
required
version
string
default:v1

Version of the model

Required string length: 1 - 64
status
enum<string>
default:LIVE
Available options:
LIVE,
DRAFT
task_params
object
xai_params
object

XAI parameters set for a model

description
string | null

Description of the model

owner_id
string | null

User ID for the owner of the model

deployment_date
string<date-time> | null

Date the model was deployed on

algorithm
string | null

Model algorithm

framework
string | null

A string providing information about the software library and version used to train and run this model

event_id_col
string | null

Event id column to be found in published data for the model

event_ts_col
string | null

Timestamp column to be found in published data for the model

event_ts_format
string | null

Format of the timestamp like datetime, epoch time etc.

Response

Created model JSON response

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

Model fields JSON