Skip to main content

Create Model

POST 

/api/v1/orgs/{orgId}/ai-models

Create a new AI model under the organization. The model holds no file yet — editions are registered and uploaded separately.

  • modelName must be unique within the organization and satisfy all of the following naming restrictions: allowed characters are English letters (a-z, A-Z), digits (0-9), hyphen (-), and underscore (_); forbidden characters are special symbols (such as *, ?, ", <, >, |, :, ;, ,, , ., /), whitespace, and control characters; it MUST NOT exceed 128 characters; and it MUST NOT end with .lock, .tmp, or .staging.

  • Returns 201 with the created model record (including the generated modelId).

  • Returns 400 for a missing orgId (MissingOrgId) or an invalid name (InvalidNameFormat), 403 if the org is not accessible to the caller's tenant (OrgNotInTenant), and 409 if the name already exists (ModelNameExists).

Request

Responses

Created