Table of Contents

Routes
Types

Routes

badge-categories

GET badge-categories/

Gets the API list of badge categories.
InputsTypeDescription
None.

OutputsTypeDescription
OzzModz_Badges_BadgeCategory[]mixed

DELETE badge-categories/{id}/

Deletes the specified badge category.
InputsTypeDescription
None.

OutputsTypeDescription
successtrue

badge-tiers

GET badge-tiers/

Gets the API list of badge tiers.
InputsTypeDescription
None.

OutputsTypeDescription
OzzModz_Badges_BadgeTier[]mixed

DELETE badge-tiers/{id}/

Deletes the specified badge tier.
InputsTypeDescription
None.

OutputsTypeDescription
successtrue

badges

GET badges/

Gets the API list of badges.
InputsTypeDescription
None.

OutputsTypeDescription
OzzModz_Badges_Badge[]mixed

DELETE badges/{id}/

Deletes the specified badge.
InputsTypeDescription
None.

OutputsTypeDescription
successtrue

POST badges/{id}/award

Awards user with badge.
InputsTypeDescription
None.

OutputsTypeDescription
UserBadge[]mixed

user-badges

GET user-badges/

Gets the API list of user badges.
InputsTypeDescription
pageinteger
user_idintegerOnly gets specified user badges
badge_idintegerOnly gets specified badge id
badge_category_idintegerOnly gets badges from category if specified
badge_tier_idintegerOnly gets badges with tier if specified

OutputsTypeDescription
userBadgesOzzModz_Badges_UserBadge[]
paginationpagination

POST user-badges/

Awards user with badge.
InputsTypeDescription
badge_idinteger[req]
user_idinteger[req]

OutputsTypeDescription
UserBadge[]mixed

DELETE user-badges/{id}/

Deletes the specified user badge.
InputsTypeDescription
None.

OutputsTypeDescription
successtrue

POST user-badges/{id}/edit

Edits reason for user badge
InputsTypeDescription
reasonstring[req]

OutputsTypeDescription
OzzModz_Badges_UserBadge[]mixed

POST user-badges/{id}/feature

Toggles featured state the specified user badge.
InputsTypeDescription
None.

OutputsTypeDescription
OzzModz_Badges_UserBadge[]mixed

Types

OzzModz_Badges_Badge

StructureTypeDescription
titlestring
descriptionstring
badge_idinteger
badge_category_idinteger
badge_tier_idinteger
user_criteriaarray
icon_typestring
fa_iconstring
mdi_iconstring
image_urlstring
image_url_2xstring
image_url_3xstring
image_url_4xstring
classstring
awarded_numberinteger
is_repetitivebool
repeat_delayinteger
is_revokedbool
is_manually_awardedbool
stacking_badge_idinteger
display_orderinteger
activebool

OzzModz_Badges_BadgeCategory

StructureTypeDescription
titlestring
badge_category_idinteger
icon_typestring
fa_iconstring
mdi_iconstring
image_urlstring
image_url_2xstring
image_url_3xstring
image_url_4xstring
classstring
display_orderinteger

OzzModz_Badges_BadgeTier

StructureTypeDescription
titlestring
badge_tier_idinteger
colorstring
cssstring
display_orderinteger

OzzModz_Badges_UserBadge

StructureTypeDescription
badge_titlestring
user_badge_idinteger
user_idinteger
awarding_user_idinteger
is_manually_awardedbool
badge_idinteger
award_dateinteger
reasonstring
featuredbool