---
title: "Calculate a Model Object Step"
method: POST
path: "/optimization.modelcalcexec/{typedId}/{stepName}"
tags: ["Optimization"]
---

# Calculate a Model Object Step

`POST /optimization.modelcalcexec/{typedId}/{stepName}`

Executes a calculation of the step as a background task in the context of the Model Object. Returns two elements within the `data` array – the JST (Job Status Tracker) object (the calculation status of the newly created calculation) and the updated ModelObject object.

## Query parameters

- `toStep` string

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object[]
      - `step` string
      - `totalJobsCount` integer
      - `jobs` object[]
        - `version` integer
        - `typedId` string
        - `processingNode` integer, nullable
        - `threadId` integer, nullable
        - `threadUUID` integer, nullable
        - `status` string
        - `trackerType` string
        - `targetObject` string
        - `jobName` string
        - `concurrencyKey` string
        - `calculationContext` string
        - `progress` integer, nullable
        - `cancelRequested` boolean
        - `runNumber` integer
        - `priority` integer
        - `messages` string, nullable
        - `jobSettings` object
          - `distributedAction` string, nullable
          - `jobType` string
          - `uuid` string
          - `calculableObjectTypedId` string
          - `queueName` string, nullable
          - `runNumber` integer
          - `partitionName` string
          - `partitionUUID` string
          - `enableDirtyTracking` boolean
          - `agentOption1` boolean
          - `jobSize` integer
          - `distributed` boolean
        - `createDate` string
        - `createdBy` integer
        - `lastUpdateDate` string
        - `lastUpdateBy` integer
        - `calculationResults` integer, nullable
        - `processingStart` integer, nullable
        - `processingEnd` integer, nullable
        - `id` integer
      - `version` integer
      - `typedId` string
      - `uniqueName` string
      - `label` string
      - `modelClassUN` string
      - `currentStep` string
      - `state` object
        - `definition` object
          - `scope` object
            - `Scope` object
              - …
          - `source` object
            - `Source` object
              - …
        - `configuration` object
          - `advanced` object
            - `Advanced` object
              - …
          - `boundaries` object
            - `Boundaries` object
              - …
          - `objectives` object
            - `Objectives` object
              - …
      - `createdByName` string
      - `lastUpdateByName` string
      - `submittedBy` integer, nullable
      - `submittedByName` string, nullable
      - `approvedBy` integer, nullable
      - `approvedByName` string, nullable
      - `deniedBy` integer, nullable
      - `deniedByName` string, nullable
      - `submitDate` string, date-time, nullable
      - `workflowStatus` string
      - `status` string
      - `shotgunEnabled` boolean
      - `createDate` string
      - `createdBy` integer
      - `lastUpdateDate` string
      - `lastUpdateBy` integer
    - `status` integer

---

[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)
