---
title: "Update Sales Order Custom Field"
method: PATCH
path: "/v2/salesOrders/{salesOrderId}/customfields/{customfieldId}"
tags: ["salesorder"]
---

# Update Sales Order Custom Field

`PATCH /v2/salesOrders/{salesOrderId}/customfields/{customfieldId}`

Update the value of a specific sales order custom field

## Path parameters

- `salesOrderId` string, uuid, required
- `customfieldId` string, uuid, required

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLWawiRestContractsModelsV1CommonUpdateCustomFieldValue — Model Class: UpdateCustomFieldValue
  - `value` object — The custom field value. The object should match the custom field type.

## Response `204`

## Other responses

- `400` — The sent data is invalid.
- `401`
- `402` — No licence available or the app has not been authorised by JTL.
- `404` — No sales order with the given ID exists.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/versions/f979b1ea6951/schema)
