Products / Update

Update a product

Route: /api/{tenant:minlength(2)}/v{version:apiVersion}/products/{id}

Method: PUT

Authorisation: Minimum role: USER

Request Arguments
Name Type Source
idInt32
inputDTO_product_UIBody

  Request body example

Response object

Response status: 200 (OK)

Response type: DTO_product_UI

Wrapper: DTO_response_wrap

Other response statuses: 400 (BadRequest), 403 (Forbidden)

  Response body example

DTO_product_UI
NameTypeReadOnlyDescription
idInt32Id
nameStringName
retail_priceDoubleRetail price
is_defaultBooleanIs default
created_byDTO_reference_userCreated by
last_updated_byDTO_reference_userLast updated by
product_categoryDTO_referenceProduct category
brandDTO_referenceBrand
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
role_enum_idtenant_user_role (nullable)Role enum id
idInt32Id
labelObjectReadOnlyLabel
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.