curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/models \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"source_code": "<string>",
"description": "<string>",
"attributes": {}
}
'{
"digest": "<string>",
"object_id": "<string>",
"version_index": 123,
"model_ref": "<string>"
}Create a model object.
curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/models \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"source_code": "<string>",
"description": "<string>",
"attributes": {}
}
'{
"digest": "<string>",
"object_id": "<string>",
"version_index": 123,
"model_ref": "<string>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The name of this model. Models with the same name will be versioned together.
Complete source code for the Model class including imports
A description of this model
Additional attributes to be stored with the model
Was this page helpful?