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.
Parameters
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. Defaults to mo-fast when questions is supplied.
Supplying model requires questions.
Initial decision criteria. Question shapes match
Create decision.
Omit both model and questions to create an unconfigured model.
Response
The modelId used by model-scoped API routes.
The workspace slug, such as acme.
Model repositories are private.
Use Update model to revise the model's criteria after creation.