Create model
Create a private model in a personal or organization workspace. The caller
must be allowed to create repositories for workspace.
Include questions to initialize the model's decision criteria at creation.
The model is then ready for decisions without a separate update request.
/v1/modelsAuthorization
Send a Modaic bearer token in the Authorization header.
Body
The workspace slug: your username or organization slug.
The model slug. It must start with an alphanumeric character and may contain
letters, digits, ., _, and -, up to 100 characters.
A description up to 1,000 characters.
The initial default branch.
Root model used for decisions. There is no implicit default. The API creates
model.json from this field and questions.
Initial decision criteria. Question shapes match
Run Inference.
Omit questions to create a general, non-task-specific model. General models
require questions in every System One request.
Optional additional repository files. model.json and modaic.json are
reserved and cannot be supplied here.
Response
Stable internal repository ID. Public model-scoped routes use workspace
and slug, not this UUID.
The workspace slug, such as acme.
Model repositories are private.
Use Update model to revise the model's criteria after creation.