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

---

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