---
title: "Upsert part mappings for a model file"
method: PUT
path: "/v1/model-files/{id}/part-mappings"
tags: ["Model Files"]
---

# Upsert part mappings for a model file

`PUT /v1/model-files/{id}/part-mappings`

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `organizationId` string, required
  - `save_scope` 'current_order' | 'reusable' | 'draft'
  - `source_context` object
  - `mappings` object[], required
    - `part_name` string, nullable
    - `quantity_per_unit` integer
    - `make_model_file_id` string, uuid, nullable
    - `recipe_mode` 'single_sku' | 'grouped_sku' | 'mixed_sku'
    - `product_sku_id` string, uuid, required
    - `shopify_location_id` string, nullable

## Response `200`

Default Response

- object
  - `saved` number

---

[API](https://skmtc.net/printhiv3d/apis/hive-api-documentation.md) · [All operations](https://skmtc.net/printhiv3d/apis/hive-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printhiv3d/hive-api-documentation/revisions/3b06bcb5f808/schema)
