Skip to main content
POST
/
api
/
v1
/
admin
/
models
Create consumption model
curl --request POST \
  --url http://localhost:3000/api/v1/admin/models \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "version": "<string>",
  "type": "<string>",
  "trainingData": "<string>",
  "parameters": "<string>",
  "metrics": "<string>",
  "environmentFactors": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
name
string

name — see API source for exact type.

version
string

version — see API source for exact type.

type
string

type — see API source for exact type.

trainingData
string

trainingData — see API source for exact type.

parameters
string

parameters — see API source for exact type.

metrics
string

metrics — see API source for exact type.

environmentFactors
string

environmentFactors — see API source for exact type.

Response

Created

message
string
data
object