PUT v1/bunits/{bunitId}/products/{productId}
Update a product
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bunitId |
Id of the business unit of the product | integer |
Required |
productId |
Id of the product to update | integer |
Required |
Body Parameters
The product to update
ProductName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of the product |
string |
Required. |
UnitName |
Name of unit Could be liter, hour, megabyte, piece etc. Default is unit |
string |
None. |
Inherited |
Product is inherited from a ancestor business unit. |
boolean |
Read-only. |
Inheritable |
Product is available to descendant business units. |
boolean |
None. |
Method |
The invoice method used to calculate the product price. |
InvoiceMethod |
None. |
InheritedProductCode |
The inherited product code is the default product code. It may be overridden using the ProductCode property. |
ProductCode |
None. |
ProductCode |
The product code. |
ProductCode |
Overrides the inherited product code. |
Id |
A unique ID for the object. |
integer |
Read-only. |
CreatedDate |
Time and date the object was created. |
date |
Read-only. |
ArchivedDate |
Time and date the object was or is going to be archived. Unarchived objects have no value in ArchivedDate |
date |
Read-only. |
Operations |
Collection of OperationResult |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
Response Information
Resource Description
The updated product
ProductName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of the product |
string |
Required. |
UnitName |
Name of unit Could be liter, hour, megabyte, piece etc. Default is unit |
string |
None. |
Inherited |
Product is inherited from a ancestor business unit. |
boolean |
Read-only. |
Inheritable |
Product is available to descendant business units. |
boolean |
None. |
Method |
The invoice method used to calculate the product price. |
InvoiceMethod |
None. |
InheritedProductCode |
The inherited product code is the default product code. It may be overridden using the ProductCode property. |
ProductCode |
None. |
ProductCode |
The product code. |
ProductCode |
Overrides the inherited product code. |
Id |
A unique ID for the object. |
integer |
Read-only. |
CreatedDate |
Time and date the object was created. |
date |
Read-only. |
ArchivedDate |
Time and date the object was or is going to be archived. Unarchived objects have no value in ArchivedDate |
date |
Read-only. |
Operations |
Collection of OperationResult |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.