POST api/Badges/PostBadge/{languageId}/{badgeId}/{percentageComplete}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
badgeId

integer

Required

languageId

integer

Required

percentageComplete

integer

None.

Body Parameters

None.

Response Information

Resource Description

BadgeDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

globally unique identifier

None.

BadgeId

integer

None.

Title

string

None.

BadgeAssetPathGray

string

None.

BadgeAssetPathBronze

string

None.

BadgeAssetPathSilver

string

None.

BadgeAssetPathGold

string

None.

MinimumValueForBronze

integer

None.

MinimumValueForSilver

integer

None.

MinimumValueForGold

integer

None.

BonusPointsOnBronze

integer

None.

BonusPointsOnSilver

integer

None.

BonusPointsOnGold

integer

None.

IsBaseBadge

boolean

None.

LanguageId

integer

None.

Description

string

None.

BronzeRequirementDescription

string

None.

SilverRequirementDescription

string

None.

GoldRequirementDescription

string

None.

AchievedBronze

date

None.

AchievedSilver

date

None.

AchievedGold

date

None.

BadgeAssetPath

string

None.

CurrentPoints

integer

None.

NewBadgeAchieved

string

None.

FunctionalityCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": "70ebf3e7-6e5d-417a-b8b3-8efee12be6ba",
  "BadgeId": 2,
  "Title": "sample string 3",
  "BadgeAssetPathGray": "sample string 4",
  "BadgeAssetPathBronze": "sample string 5",
  "BadgeAssetPathSilver": "sample string 6",
  "BadgeAssetPathGold": "sample string 7",
  "MinimumValueForBronze": 8,
  "MinimumValueForSilver": 9,
  "MinimumValueForGold": 10,
  "BonusPointsOnBronze": 11,
  "BonusPointsOnSilver": 12,
  "BonusPointsOnGold": 13,
  "IsBaseBadge": true,
  "LanguageId": 15,
  "Description": "sample string 16",
  "BronzeRequirementDescription": "sample string 17",
  "SilverRequirementDescription": "sample string 18",
  "GoldRequirementDescription": "sample string 19",
  "AchievedBronze": "2019-07-20T03:42:36.6182251-04:00",
  "AchievedSilver": "2019-07-20T03:42:36.6182251-04:00",
  "AchievedGold": "2019-07-20T03:42:36.6182251-04:00",
  "BadgeAssetPath": "sample string 20",
  "CurrentPoints": 21,
  "NewBadgeAchieved": "sample string 22",
  "FunctionalityCode": "sample string 23"
}

application/xml, text/xml

Sample:
<BadgeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <AchievedBronze>2019-07-20T03:42:36.6182251-04:00</AchievedBronze>
  <AchievedGold>2019-07-20T03:42:36.6182251-04:00</AchievedGold>
  <AchievedSilver>2019-07-20T03:42:36.6182251-04:00</AchievedSilver>
  <BadgeAssetPath>sample string 20</BadgeAssetPath>
  <BadgeAssetPathBronze>sample string 5</BadgeAssetPathBronze>
  <BadgeAssetPathGold>sample string 7</BadgeAssetPathGold>
  <BadgeAssetPathGray>sample string 4</BadgeAssetPathGray>
  <BadgeAssetPathSilver>sample string 6</BadgeAssetPathSilver>
  <BadgeId>2</BadgeId>
  <BonusPointsOnBronze>11</BonusPointsOnBronze>
  <BonusPointsOnGold>13</BonusPointsOnGold>
  <BonusPointsOnSilver>12</BonusPointsOnSilver>
  <BronzeRequirementDescription>sample string 17</BronzeRequirementDescription>
  <CurrentPoints>21</CurrentPoints>
  <Description>sample string 16</Description>
  <FunctionalityCode>sample string 23</FunctionalityCode>
  <GoldRequirementDescription>sample string 19</GoldRequirementDescription>
  <Id>1</Id>
  <IsBaseBadge>true</IsBaseBadge>
  <LanguageId>15</LanguageId>
  <MinimumValueForBronze>8</MinimumValueForBronze>
  <MinimumValueForGold>10</MinimumValueForGold>
  <MinimumValueForSilver>9</MinimumValueForSilver>
  <NewBadgeAchieved>sample string 22</NewBadgeAchieved>
  <SilverRequirementDescription>sample string 18</SilverRequirementDescription>
  <Title>sample string 3</Title>
  <UserId>70ebf3e7-6e5d-417a-b8b3-8efee12be6ba</UserId>
</BadgeDto>