---
title: "Import Models"
method: POST
path: "/optimization.modelimport"
tags: ["Optimization"]
---

# Import Models

`POST /optimization.modelimport`

Imports a previously exported model from a ZIP file.

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` ModelObject[]
      - `lastUpdateByName` string, nullable
      - `createdByName` string, nullable
      - `typedId` string
      - `workflowStatus` 'DRAFT' | 'SUBMITTED' | 'DENIED' | 'APPROVED' | 'NO_APPROVAL_REQUIRED' | 'WITHDRAWN' | 'INVALIDATED'
      - `lastUpdateDate` string, date-time, nullable
      - `approvedBy` integer, nullable
      - `submitDate` string, date-time, nullable
      - `deniedByName` string, nullable
      - `submittedByName` string, nullable
      - `userGroupViewDetails` string, nullable
      - `approvedByName` string, nullable
      - `state` object, nullable
      - `id` integer, nullable
      - `createDate` string, date-time, nullable
      - `submittedBy` integer, nullable
      - `deniedBy` integer, nullable
      - `label` string, nullable
      - `moduleCategoryUN` string, nullable
      - `version` integer, nullable
      - `currentStep` string, nullable
      - `uniqueName` string, nullable
      - `createdBy` integer, nullable
      - `userGroupEdit` string, nullable
      - `modelClassUN` string, nullable
      - `status` 'INVALID' | 'DRAFT' | 'CALCULATING' | 'ERROR' | 'READY'
      - `lastUpdateBy` integer, nullable
    - `status` integer

## Other responses

- `400` — Bad request (e.g. missing or invalid file)
- `500` — Internal Server Error

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
