---
title: "Finalize Nimbus"
method: POST
path: "/method/nimbus/finalize"
---

# Finalize Nimbus

`POST /method/nimbus/finalize`

An endpoint for finishing up the nimbus process.

Args:
    request (NIMBUSFinalizeRequest): The request containing the final solution, etc.
    user (Annotated[User, Depends): The current user.
    session (Annotated[Session, Depends): The database session.

Raises:
    HTTPException

Returns:
    NIMBUSFinalizeResponse: Response containing state id of the final solution.

## Request body

- NIMBUSFinalizeRequest — Request model for finalizing the NIMBUS procedure.
  - `problem_id` integer, required
  - `session_id` integer, nullable
  - `parent_state_id` integer, nullable
  - `solution_info` SolutionInfo, required — Used when we wish to reference a solution in some `StateDB` stored in the database.
    - `state_id` integer, required
    - `solution_index` integer, required
    - `name` string, nullable — Name to be given to the solution. Optional.
  - `preferences` ReferencePoint, required — Model for representing a reference point type of preference.
    - `preference_type` 'reference_point'
    - `aspiration_levels` object, required

## Response `200`

Successful Response

- NIMBUSFinalizeResponse — The response from NIMBUS finish endpoint.
  - `state_id` integer, nullable, required — The id of the newest state
  - `final_solution` SolutionReferenceResponse, required — The response information provided when `SolutionReference` object are returned from the client.
    - `name` string, nullable, required
    - `solution_index` integer, nullable, required
    - `state_id` integer, required
    - `objective_values` object, nullable, required
    - `variable_values` object, nullable, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-17** `c24fa4e23380` — 1 info
  - endpoint added
- **2025-05-20** `bbcc40488a72` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api/changes/method/nimbus/finalize/post.md)

---

[API](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api.md) · [All operations](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/industrial-optimization-group/desdeo-fast-api/revisions/c24fa4e23380/schema)
