---
title: "Link model file to SKU"
method: POST
path: "/v1/product-skus/{id}/model-files"
tags: ["Product SKUs"]
---

# Link model file to SKU

`POST /v1/product-skus/{id}/model-files`

Create a mapping between a product SKU and a model file

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `model_file_id` string, uuid, required
  - `allowed_filament_types` string[], required
  - `allowed_filament_colors` object[]
    - `slot` integer
    - `color` string
    - `hex` string
  - `priority` integer
  - `part_name` string, nullable
  - `quantity_per_unit` integer
  - `make_model_file_id` string, uuid, nullable
  - `recipe_mode` 'single_sku' | 'grouped_sku' | 'mixed_sku'
  - `shopify_location_id` string, nullable

## Response `201`

Model file linked successfully

- object — Model file linked successfully

## Other responses

- `404` — Product SKU or model file not found
- `409` — Mapping already exists

---

[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/versions/3b06bcb5f808/schema)
