Check whether a product can be deleted
Advisory pre-flight for `DELETE {productId}`. `canBeDeleted` is false when `blockingReferences` lists the places that still point at the product (stock rows, documents, …). Requires `Permissions.Product.View`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerint32application/json- response
blockingReferences*array<string>canBeDeleted*booleancurl -X GET 'https://<your-instance>/api/products/0/check-delete' \ -H 'Authorization: Bearer <access-token>'{ "blockingReferences": [ "string" ], "canBeDeleted": true}Update a product's building-material data PUT
Creates or replaces the product's building-material attributes and returns the stored row. Requires `Permissions.Product.Update`.
List a product's read-only fields GET
Returns the fields of this product that the instance's configuration will not let you change, so a client can disable them before the user edits anything. Which fields are locked is instance-specific. Requires `Permissions.Product.View`.