Skip to main content
PATCH
Update stock details

Request Structure

All attributes are optional — send only the fields you want to change.

Key Fields

Setting Weight

Weight is stored on the stock’s associated dimensions record, not directly on the stock. Set it via the nested unit_dimensions object:

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the stock record to update

Body

application/json

Request body for updating the details of a stock record. All attributes are optional — send only the fields to change.

data
object
required

Response

Stock updated successfully

Standard successful response wrapper following JSON:API format

data
object

The response payload