PUT v1/bunits/{bunitId}/consumers/{consumerId}/consumption/{consumptionId}
Update a consumption
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bunitId |
integer |
Required |
|
consumerId |
integer |
Required |
|
consumptionId |
integer |
Required |
Body Parameters
ConsumptionName | Description | Type | Additional information |
---|---|---|---|
Quantity |
How much of the given product that has been utilized |
decimal number |
None. |
Product |
What product the consumption concerns |
Product |
None. |
Description |
Optional field for describing the consumption |
string |
None. |
ConsumptionDate |
Date consumption occurred (oposed to date of creation) |
date |
If omitted during creation, the value will be set to current date. |
Consumer |
What consumption unit has been utilizing the product If consumption unit is null the utilization is related directly to the business unit |
Consumer |
None. |
BusinessUnit |
The business unit that utilizes the product or the owner of the consumption unit |
BusinessUnit |
None. |
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
ConsumptionName | Description | Type | Additional information |
---|---|---|---|
Quantity |
How much of the given product that has been utilized |
decimal number |
None. |
Product |
What product the consumption concerns |
Product |
None. |
Description |
Optional field for describing the consumption |
string |
None. |
ConsumptionDate |
Date consumption occurred (oposed to date of creation) |
date |
If omitted during creation, the value will be set to current date. |
Consumer |
What consumption unit has been utilizing the product If consumption unit is null the utilization is related directly to the business unit |
Consumer |
None. |
BusinessUnit |
The business unit that utilizes the product or the owner of the consumption unit |
BusinessUnit |
None. |
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.