---
title: "Adds an input material to an item's routing"
method: POST
path: "/api/items/{itemId}/routing/input-materials"
tags: ["Item Routing"]
---

# Adds an input material to an item's routing

`POST /api/items/{itemId}/routing/input-materials`

## Path parameters

- `itemId` string, required

## Request body

- ItemRoutingInputMaterialCreateDto — Create an input material for routing
  - `materialId` string, required — The material id to be added. Please reference /api/materials endpoint.
  - `costing` 'fullCost' | 'usageBased', required — Specifies the costing of the material.
  - `nestings` ItemRoutingInputMaterialNestingCreateDto[], nullable — Nestings associated to this material indicating bounding box dimensions and production quantities.
    - `d2` number, double, required — Length
    - `d3` number, double, required — For Sheets, the Width
    - `produces` integer, required — The quantity produced, given the bounding box dimensions (D2 x D3).
    - `useForEstimatedCosting` boolean — Indicates if this nesting record will be used for estimated costing. NOTE: Only one nesting record for a material can have this value set to true.
  - `routingStepId` string, nullable — The routing step id. This value should be the Id from the response from items/{itemId}/routing/operations/list

## Response `200`

An input material was created on the item's routing

- CreatedResponseDto — Response for a created record
  - `id` string, required — The id of the created record

## Other responses

- `400` — Validation issue with input
- `404` — A material was not found matching the material id

---

[API](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi.md) · [All operations](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fulcrumpro/fulcrum-publicapi/versions/1b5649cff14a/schema)
