Store Model

post

/omlmod/v1/models

Store a model in the repository. A unique modelId will be assigned to the stored model, and the model's creator will be assigned from the access token used to authorize the request. This method takes the binary data for the model, model name, description, model version, model type, shared, and model namespace as inputs.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Pattern: ^[a-zA-Z0-9_#$]{1,123}$
    The name of the database model object that will be stored in the model repository.
  • Maximum Length: 4000
    Description of the model.
  • Pattern: ^[a-zA-Z0-9_#$]\d{1,50}$
    The name that will be assigned to the model in the repository.
  • Pattern: ^(?:[a-zA-Z0-9_$#]{1,128}|\"[^\"\\0]{1,128}\")$
    The name of the schema of the database model object that will be stored in the model repository.
  • Allowed Values: [ "OML", "ONNX", "ONNX_IMG" ]
    The type of the model being uploaded.
  • Pattern: [a-zA-Z0-9_]{0,50}
    Model namespace.
  • Allowed Values: [ true, false ]
    If the model is shared or not. The Boolean value is false if the input (form data) string argument is null or is equal, ignoring case, to the string "false", otherwise true.
  • Pattern: ^[1-9]?[0-9](\\.[0-9][0-9]?$)?
    The version of the model being uploaded.
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Successful creation of a model.
Headers
Body ()
Root Schema : CreateModelResponse
Type: object
Show Source

400 Response

Bad request.
Body ()
Root Schema : Error
Type: object
Show Source

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source

404 Response

Resource not found.
Body ()
Root Schema : Error
Type: object
Show Source

409 Response

Model already exists.
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Problem connecting to the repository, executing an update, or other unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top