Skip to main content

Update good

Method PUT

https://my.easyweek.io/api/public/v2/goods/{good_uuid}

Description: This endpoint updates a good. Send the same field set as create (full replace). The article uniqueness check ignores the good being updated, unit is immutable, and initial_stock is not applied on update — manage stock separately.

Example Request

curl -i -X PUT \
https://my.easyweek.io/api/public/v2/goods/{good_uuid} \
-H 'Authorization: Bearer <YOUR_SECRET>' \
-H 'Workspace: <YOUR_WORKSPACE>'

Request body

{
"name": "Shampoo XL",
"article": "SKU-123",
"is_payable": true,
"price": 1800,
"unit": "pcs",
"is_consumable": false,
"live": true,
"live_in_widget": false
}

Path Parameters

  • good_uuid (string, required): The unique identifier of the good to update.

Body Parameters

The same fields as Create good, except initial_stock is ignored. name, article, is_payable, unit and is_consumable remain required.

Example Response

{
"uuid": "9c2f1b7e-2f8a-4a1e-bd2c-6b3a1f9e0d11",
"name": "Shampoo XL",
"article": "SKU-123",
"category": null,
"description": null,
"is_payable": true,
"price": 1800,
"unit": "pcs",
"is_consumable": false,
"consumable_unit": "pcs",
"quantity_in_unit": null,
"stock": 10,
"can_be_set_up_as_consumable": true,
"images": [],
"image": null,
"live": true,
"live_in_widget": false,
"public_name_translatable": {},
"public_description_translatable": {}
}