---
title: "Create a new operation"
method: POST
path: "/api/operation"
tags: ["Operation"]
---

# Create a new operation

`POST /api/operation`

## Request body

- OperationCreateDto — Details of operation to be created
  - `name` string, required — The name of operation.
  - `description` string, required — The description of the operation.
  - `isOutsideProcessing` boolean — Specifies whether this is an outside processing operation.
  - `setupTime` ItemRoutingOperationTime — Operation time and type
    - `time` number, double — Time or units of this operation
    - `option` 'fixedSeconds' | 'fixedMinutes' | 'fixedHours' | 'fixedDays' | 'secondsPerUnit' | 'minutesPerUnit' | 'hoursPerUnit' | 'daysPerUnit' | 'unitsPerHour' — The time unit or option used in operation times
  - `laborTime` ItemRoutingOperationTime — Operation time and type
    - `time` number, double — Time or units of this operation
    - `option` 'fixedSeconds' | 'fixedMinutes' | 'fixedHours' | 'fixedDays' | 'secondsPerUnit' | 'minutesPerUnit' | 'hoursPerUnit' | 'daysPerUnit' | 'unitsPerHour' — The time unit or option used in operation times
  - `machineTime` ItemRoutingOperationTime — Operation time and type
    - `time` number, double — Time or units of this operation
    - `option` 'fixedSeconds' | 'fixedMinutes' | 'fixedHours' | 'fixedDays' | 'secondsPerUnit' | 'minutesPerUnit' | 'hoursPerUnit' | 'daysPerUnit' | 'unitsPerHour' — The time unit or option used in operation times
  - `machineTimeTrackingEnabled` boolean — Specifies whether machine tracking is enabled.
  - `outsideProcessingCost` ItemRoutingOutsideProcessingOperationCost — Outside processing operation cost
    - `costOption` 'fixed' | 'perUnit' — The cost option for the outside processing operation
    - `fixedCost` number, double, nullable — The fixed total cost for the operation
    - `perUnitCost` number, double, nullable — The cost per unit for the operation
  - `defaultVendorId` string, nullable — Default vendor id that will be used for this operation. Please reference /api/vendors endpoint.
  - `vendors` string[], nullable — Available vendors.
  - `leadDays` integer, nullable — Lead days.
  - `instructions` string, nullable — Instructions.
  - `accountingCodeId` string, nullable — Accounting code key identifier. Please reference /api/accounting-codes endpoint.

## Response `200`

Operation created

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

## Other responses

- `400` — Validation issues with input

---

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