PUT v1/bunits/{bunitId}/consumption/{consumptionId}

Update a consumption

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId integer

Required

consumptionId integer

Required

Body Parameters

Consumption
NameDescriptionTypeAdditional 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.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

Response Information

Resource Description

Consumption
NameDescriptionTypeAdditional 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.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.