v2

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-26192307950.1 KB
workspaces

Create Model

Create a new model.

Args: workspace_name_or_id: Name or ID of the workspace. model: The model to create.

Returns: The created model.

Raises: IllegalOperationError: If the workspace or user specified in the model does not match the current workspace or authenticated user.

post/api/v1/workspaces/{workspace_name_or_id}/models

Path parameters

string required
OR
string uuid required

Request body

userstring uuid required
workspacestring uuid required
namestring required
licensestring nullable
descriptionstring nullable
audiencestring nullable
use_casesstring nullable
limitationsstring nullable
trade_offsstring nullable
ethicsstring nullable
tagsstring[] nullable required
save_models_to_registryboolean

Response

Successful Response

resourcesModelResponseResources

Class for all resource models associated with the model entity.

idstring uuid required
permission_deniedboolean
namestring required