---
title: "Update an existing part"
method: PUT
path: "/Part/{partId}"
tags: ["Part"]
---

# Update an existing part

`PUT /Part/{partId}`

Update a part

## Path parameters

- `partId` integer, required

## Request body

- ModelPartUpdate — Part model
  - `id` integer, nullable — The part id
  - `objectName` string, nullable — The part object name
  - `create` string, date-time — Date of part creation
  - `update` string, date-time — Date of last part update
  - `name` string — Name of the part
  - `partNumber` string — The part number
  - `text` string, nullable — A text describing the part
  - `category` object, nullable — Category of the part.<br> For all categories, send a GET to /Category?objectType=Part
    - `id` integer, required — Unique identifier of the category
    - `objectName` string, required — Model name, which is 'Category'
  - `stock` number, float — The stock of the part
  - `stockEnabled` boolean, nullable — Defines if the stock should be enabled
  - `unity` object — The unit in which the part is measured
    - `id` integer, required — Unique identifier of the unit
    - `objectName` string, required — Model name, which is 'Unity'
  - `price` number, float, nullable — Net price for which the part is sold. we will change this parameter so that the gross price is calculated automatically, until then the priceGross parameter must be used.
  - `priceNet` number, float, nullable — Net price for which the part is sold
  - `priceGross` number, float, nullable — Gross price for which the part is sold
  - `sevClient` object — Client to which part belongs. Will be filled automatically
    - `id` integer, required — Unique identifier of the client
    - `objectName` string, required — Model name, which is 'SevClient'
  - `pricePurchase` number, float, nullable — Purchase price of the part
  - `taxRate` number, float — Tax rate of the part
  - `status` 50 | 100, nullable — Status of the part. 50 <-> Inactive - 100 <-> Active
  - `internalComment` string, nullable — An internal comment for the part.<br> Does not appear on invoices and orders.

## Response `200`

Successful operation - Returns changed part resource

- ModelPart — Part model
  - `id` integer — The part id
  - `objectName` string — The part object name
  - `create` string, date-time — Date of part creation
  - `update` string, date-time — Date of last part update
  - `name` string, required — Name of the part
  - `partNumber` string, required — The part number
  - `text` string, nullable — A text describing the part
  - `category` object, nullable — Category of the part.<br> For all categories, send a GET to /Category?objectType=Part
    - `id` integer, required — Unique identifier of the category
    - `objectName` string, required — Model name, which is 'Category'
  - `stock` number, float, required — The stock of the part
  - `stockEnabled` boolean — Defines if the stock should be enabled
  - `unity` object, required — The unit in which the part is measured
    - `id` integer, required — Unique identifier of the unit
    - `objectName` string, required — Model name, which is 'Unity'
  - `price` number, float, nullable — Net price for which the part is sold. we will change this parameter so that the gross price is calculated automatically, until then the priceGross parameter must be used.
  - `priceNet` number, float, nullable — Net price for which the part is sold
  - `priceGross` number, float, nullable — Gross price for which the part is sold
  - `sevClient` object — Client to which part belongs. Will be filled automatically
    - `id` integer, required — Unique identifier of the client
    - `objectName` string, required — Model name, which is 'SevClient'
  - `pricePurchase` number, float, nullable — Purchase price of the part
  - `taxRate` number, float, required — Tax rate of the part
  - `status` 50 | 100, nullable — Status of the part. 50 <-> Inactive - 100 <-> Active
  - `internalComment` string, nullable — An internal comment for the part.<br> Does not appear on invoices and orders.

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `500` — Server Error

---

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