---
updatedAt: 2026-06-18T16:33:19.000Z
agentTools:
  projectIndex: https://docs.lumeo.com/llms.txt
---

# Update a Model

Update this Machine learning Model.

The response object's `weights_file_url` (and `metadata_file_url` if a metadata filename was given) will be presigned so the corresponding files can be uploaded there with a simple PUT request. The URL is valid for 24 hours.

# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Lumeo API",
    "version": "1.0",
    "description": "Lumeo is a custom video analytics platform that enables you to rapidly create, deploy,\nand securely manage smart vision-enabled applications. Our vision\nbuilding-blocks remove the development and operational overhead of\nmanaging off-the-shelf IP video cameras and visual data infrastructure for\nyou, and give you a fast, reliable and scalable way to bring vision-enabled\nservices to market.\n\nThe Lumeo API gives you an easy way to control your vision application and\nintegrate cameras, storage, processing and model management with your\napplication.\n\n# Authentication\n\nAll requests to Lumeo's REST API require you to authenticate. You\nauthenticate requests to Lumeo using API Keys which can be created and\nrevoked in the Lumeo Console.\n\n> To authenticate using an API Key, use HTTP Bearer (token) authentication and provide the API\n> key as the token in the Authorization header when making requests to protected resources:\n```\nAuthorization: Bearer <token>\n```\n\n# API Error Codes\n\nWhat errors and status codes can a user expect?\n\n| Error Code                          | Description |\n|-------------------------------------|-------------|\n| HTTP Status Codes for GET Requests  | Description |\n| HTTP Status Codes for POST Requests | Description |\n| Other Inline Error Codes            | Description |\n",
    "contact": {
      "name": "Lumeo",
      "url": "https://www.lumeo.com",
      "email": "support@lumeo.com"
    }
  },
  "servers": [
    {
      "url": "https://api.lumeo.com/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "models",
      "description": "Models are available AI models for an application."
    }
  ],
  "paths": {
    "/apps/{application_id}/models/{model_id}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "application_id",
          "in": "path",
          "required": true
        },
        {
          "schema": {
            "type": "string"
          },
          "name": "model_id",
          "in": "path",
          "required": true
        }
      ],
      "put": {
        "summary": "Update a Model",
        "operationId": "update_model",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationModel"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "description": {
                    "type": "string"
                  },
                  "weights_file_name": {
                    "type": "string",
                    "description": "Set this to a filename if you want to upload a new weights file."
                  },
                  "metadata_file_name": {
                    "type": "string",
                    "description": "Set this to a filename if you want to upload a new metadata file.\n\nSet this to null if you want to delete the existing metadata file.",
                    "nullable": true
                  },
                  "labels_file_name": {
                    "type": "string",
                    "description": "Set this to a filename if you want to upload a new class labels file.\n\nSet this to null if you want to delete the existing class labels file.",
                    "nullable": true
                  },
                  "parameters": {
                    "type": "object"
                  },
                  "capability": {
                    "$ref": "#/components/schemas/ModelCapability"
                  },
                  "architecture": {
                    "$ref": "#/components/schemas/ModelArchitecture"
                  },
                  "format": {
                    "$ref": "#/components/schemas/ModelFormat"
                  },
                  "inference_config": {
                    "$ref": "#/components/schemas/InferenceConfig"
                  }
                },
                "required": [
                  "name",
                  "parameters",
                  "capability",
                  "architecture",
                  "format"
                ]
              }
            }
          }
        },
        "description": "Update this Machine learning Model.\n\nThe response object's `weights_file_url` (and `metadata_file_url` if a metadata filename was given) will be presigned so the corresponding files can be uploaded there with a simple PUT request. The URL is valid for 24 hours.",
        "tags": [
          "models"
        ],
        "security": [
          {
            "api_key": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "scheme": "bearer",
        "description": ""
      }
    },
    "schemas": {
      "UUID": {
        "title": "UUID",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "f78ef73a-077d-4979-8d4c-bccb8e33301e",
            "description": "An UUIDv4 identifer for this object."
          }
        },
        "required": [
          "id"
        ]
      },
      "Timestamps": {
        "title": "Timestamps",
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2014-03-12T13:37:27+00:00",
            "description": "The time this object was created (ISO 8601)."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2014-03-12T13:37:27+00:00",
            "description": "The time this object was last updated at (ISO 8601)."
          }
        },
        "required": [
          "created_at",
          "updated_at"
        ]
      },
      "ApplicationId": {
        "title": "Application ID",
        "type": "object",
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "description": "The application this model belongs to."
          }
        },
        "required": [
          "application_id"
        ]
      },
      "ModelCapability": {
        "title": "ModelCapability",
        "type": "string",
        "enum": [
          "classification",
          "detection",
          "segmentation",
          "transformation",
          "other"
        ]
      },
      "ModelArchitecture": {
        "type": "string",
        "enum": [
          "detectnet",
          "frcnn",
          "mobilenet",
          "resnet",
          "ssd",
          "ssd_customvision",
          "tinyyolo",
          "yolo",
          "yolov2",
          "yolov3",
          "yolov4",
          "yolov5",
          "yolor",
          "yolox",
          "ppyoloe",
          "yolov6",
          "yolov7",
          "yolov8",
          "yolov2_tiny",
          "yolov3_tiny",
          "yolov4_tiny",
          "yolov7_tiny",
          "yolonas",
          "damoyolo",
          "yolo_customvision",
          "yolov9",
          "yolov10",
          "yolov11",
          "yolov12",
          "dfine",
          "rfdetr",
          "yolo26",
          "other"
        ]
      },
      "ModelFormat": {
        "type": "string",
        "enum": [
          "caffe",
          "yolonative",
          "onnx",
          "onnxlumeoyolo",
          "uff",
          "tensorflow",
          "openvino",
          "etlt",
          "other"
        ]
      },
      "ColorFormat": {
        "type": "string",
        "enum": [
          "rgb",
          "bgr",
          "grayscale"
        ]
      },
      "ClusterMode": {
        "type": "string",
        "enum": [
          "open_cv_group_rectangles",
          "dbscan",
          "nms",
          "dbscan_nms_hybrid",
          "no_clustering"
        ]
      },
      "NetworkMode": {
        "type": "string",
        "enum": [
          "float16",
          "float32",
          "int8"
        ]
      },
      "InputOrder": {
        "type": "string",
        "enum": [
          "nc",
          "nchw",
          "nhcw"
        ]
      },
      "ClassAttributes": {
        "type": "object",
        "properties": {
          "min_inference_threshold": {
            "type": "number",
            "format": "double",
            "example": 4.3
          },
          "eps": {
            "type": "number",
            "format": "double",
            "example": 2.34
          },
          "min_boxes": {
            "type": "integer",
            "format": "int32",
            "example": 7
          },
          "dbscan_min_score": {
            "type": "number",
            "format": "double",
            "example": 3.25
          },
          "nms_iou_threshold": {
            "type": "number",
            "format": "double",
            "example": 3.45
          },
          "object_min_size": {
            "type": "string",
            "format": "45x20",
            "example": "45x20"
          },
          "object_max_size": {
            "type": "string",
            "format": "50x30",
            "example": "50x30"
          },
          "top_k": {
            "type": "integer",
            "format": "int32",
            "example": 5
          }
        }
      },
      "InferenceConfig": {
        "title": "Inference Config",
        "type": "object",
        "properties": {
          "inference_engine": {
            "type": "string",
            "example": "default"
          },
          "normalization_mean": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "example": [
              0.485,
              0.456,
              0.406
            ]
          },
          "normalization_std": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "example": [
              0.229,
              0.224,
              0.225
            ]
          },
          "net_scale_factor": {
            "type": "number",
            "format": "double",
            "example": 0.003921
          },
          "color_format": {
            "$ref": "#/components/schemas/ColorFormat"
          },
          "cluster_mode": {
            "$ref": "#/components/schemas/ClusterMode"
          },
          "network_mode": {
            "$ref": "#/components/schemas/NetworkMode"
          },
          "infer_dims": {
            "type": "string",
            "example": "string"
          },
          "input_order": {
            "$ref": "#/components/schemas/InputOrder"
          },
          "input_blob_name": {
            "type": "string",
            "example": "string"
          },
          "output_blob_names": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "a;b;c;d",
              "e;f;g",
              "h;i;g"
            ]
          },
          "tlt_model_key": {
            "type": "string"
          },
          "filter_out_class_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "classifier_threshold": {
            "type": "number",
            "format": "double",
            "example": 3.12
          },
          "class_attributes": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ClassAttributes"
            }
          }
        }
      },
      "ModelNew": {
        "title": "Model New",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of this model."
          },
          "description": {
            "type": "string",
            "description": "The description of this model."
          },
          "weights_file_url": {
            "type": "string",
            "format": "uri",
            "example": "https://s3.amazon.com/bucket/32/123",
            "description": "The url to this model's weights file."
          },
          "metadata_file_url": {
            "type": "string",
            "format": "uri"
          },
          "labels_file_url": {
            "type": "string",
            "format": "uri",
            "example": "https://s3.amazon.com/bucket/32/123",
            "description": "The url to this model's labels file."
          },
          "parameters": {
            "type": "object"
          },
          "gallery_img_url": {
            "type": "string",
            "format": "uri"
          },
          "capability": {
            "$ref": "#/components/schemas/ModelCapability"
          },
          "architecture": {
            "$ref": "#/components/schemas/ModelArchitecture"
          },
          "format": {
            "$ref": "#/components/schemas/ModelFormat"
          },
          "inference_config": {
            "$ref": "#/components/schemas/InferenceConfig"
          },
          "is_selectable_ai_node": {
            "type": "boolean",
            "description": "Whether this model appears in AI Model node selection lists.",
            "default": true
          }
        },
        "required": [
          "name",
          "parameters",
          "capability",
          "architecture",
          "format"
        ]
      },
      "ApplicationModelNew": {
        "title": "Model New",
        "allOf": [
          {
            "$ref": "#/components/schemas/ApplicationId"
          },
          {
            "$ref": "#/components/schemas/ModelNew"
          }
        ]
      },
      "ApplicationModel": {
        "title": "Model",
        "allOf": [
          {
            "$ref": "#/components/schemas/UUID"
          },
          {
            "$ref": "#/components/schemas/ApplicationModelNew"
          },
          {
            "$ref": "#/components/schemas/Timestamps"
          }
        ]
      }
    }
  }
}
````