---
title: "Solve a values record into a draft design"
method: POST
path: "/v3/compute/solve"
tags: ["Compute"]
---

# Solve a values record into a draft design

`POST /v3/compute/solve`

## Request

- Base URL: `https://api.rhinoartisan.com`
- URL: `https://api.rhinoartisan.com/v3/compute/solve`
- Auth: API key in header `apikey`
- TypeScript: <https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/docs/v3/compute/solve/post.ts> (a function with typed inputs; its response is checked against the schema)

Runs the Knowledge Capsule's .gh on RhinoArtisan Compute with `values` as its single `RH_IN:100:GLOBAL` input, uploads the GLB/STL and stores the result as a draft Design (not yet in the catalogue). Returns the design with public URLs, a `materials` map for the viewer, the resolved values and a price breakdown. Save it with POST /v3/backoffice/design {draft_id}.

## Request body

- object
  - `capsule_id` integer, required: Knowledge Capsule of the caller's organization. Its .gh must be uploaded.
  - `values` object, required: The record: a flat object keyed by the Knowledge Capsule's schema (dotted names). A nested object is flattened. Validated against `KnowledgeCapsule.schema`.
  - `mode` 'rendering' | 'manufacturing'

## Response `200`

Draft design with glb_url/stl_url, tech, parts (the part paths of the piece, as in the GLB extras.part), values_resolved, materials and breakdown

## Other responses

- `400`: INVALID_PAYLOAD, MISSING_CAPSULE, CAPSULE_REQUIRES_ORGANIZATION, INVALID_VALUES, INVALID_MODE or CAPSULE_HAS_NO_DEFINITION
- `404`: CAPSULE_NOT_FOUND
- `502`: Compute or upload failed; the draft is kept as failed

## Changes

- **2026-10-02** `82c79770c36b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/changes/v3/compute/solve/post.md)

---

[API](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api.md) - [All operations](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/revisions/f0e1d3d69cfb?raw)
