Skip to main content
POST
/
v2
/
{entity}
/
{project}
/
models
{
  "digest": "<string>",
  "object_id": "<string>",
  "version_index": 123,
  "model_ref": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

entity
string
required
project
string
required

Body

application/json
name
string
required

The name of this model. Models with the same name will be versioned together.

source_code
string
required

Complete source code for the Model class including imports

description
string | null

A description of this model

attributes
object | null

Additional attributes to be stored with the model

Response

Successful Response

digest
string
required

The digest of the created model

object_id
string
required

The ID of the created model

version_index
integer
required

The version index of the created model

model_ref
string
required

Full reference to the created model