Classic APIs
ClassicBadgesApi
updateBadge

updateBadge

Updates a badge.

Parameters

NameTypeDescription
badgeIdIdentifierThe ID of the badge to update.
name?stringThe new name for the badge.
description?stringThe new description for the badge.
enabled?booleanIf the badge is to enabled.

Example

const { data: success } = await ClassicBadgesApi.updateBadge({ badgeId: 2124533401, description: "hello" }); 

Endpoint

PATCH /v1/badges/{badgeId}