POST v1/bunits/{bunitId}/consumption/multiple

Create multiple consumptions to units in the business units hierarchy.
For each consumption a consumption unit or a business unit should be given
for the system to know what the consumption is related to.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId integer

Required

Body Parameters

Collection of 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.

Operations Collection of OperationResult

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.