POST v1/bunits/{bunitId}/consumers/{consumerId}/tags

Assign a tag to a consumption unit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId The ID of the business unit the consumption unit is related to integer

Required

consumerId The ID of the consumption unit the tag should be assigned integer

Required

Body Parameters

The tag to assign

Tag
NameDescriptionTypeAdditional information
Id Id of the tag
integer

None.

BusinessUnitId The ID of the business unit that created the tag
integer

None.

Text The text of the tag
string

None.

Inheritable If a tag is inheritable it can be used by business units descending original creator
boolean

None.

BusinessUnitCount The number of business unit that the tag is assigned to
integer

None.

ConsumerCount The number of consumption units the tag is assigned to
integer

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<Tag xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <BusinessUnitId>2</BusinessUnitId>
  <Text>sample string 3</Text>
  <Inheritable>true</Inheritable>
  <BusinessUnitCount>5</BusinessUnitCount>
  <ConsumerCount>6</ConsumerCount>
</Tag>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.