PATCH /stocks/stock-status/{stockStatus}

Update a Stock Status

This endpoint allows you to update a Stock Status. A stock status corresponds to an existing stock in a warehouse for a material.

Operation ID: updateStockStatus
lock This endpoint requires a Bearer token in the Authorization header.

Path Parameters

Name Type Description
stockStatus required
path
string

The stock status ID

Request Body

Content-Type: application/json

minimum_quantity integer

Minimum quantity

Example: 10

mean_price number

Mean price

Example: 10.5

observations string

Observations about the stock status update

Example: Stock status updated to in stock

Responses

data object

StockStatus model structure details

id string required read-only

ID of the StockStatus

type string required read-only

Model type

stock-status
attributes object required
material_id integer read-only

ID of the Material

Example: 1

warehouse_id integer read-only

ID of the Warehouse

Example: 1

quantity number read-only

Quantity of the material present in the warehouse

mean_price number | null read-only

Mean price of the material associated with the warehouse

observations string | null read-only

Description or notes

status string
error
error object
properties object

Only present when related to property validation error

dev_message string

Example: Property validation error. Check the "properties" section in the response.

http_code integer
400
message string

Example: Property validation error.

more_info string
status string
error
error object
http_code integer
401
message string

Example: Authentication token invalid.

more_info string
status string
error
error object
http_code integer
429
message string

Example: Too Many Requests.

more_info string
status string
error
error object
http_code integer
500
message string

Example: An error has occurred during the request.

more_info string