Update badge

PUT {{baseUrl}}/api/v1/badges/([0-9]+)

This API updates the details of a badge.

OAuth Scope

  • Desk.settings.UPDATE

Attributes

Attribute NameData TypeDescription
name (required)<string>
max chars : 200
Name of the badge
description<string>
max chars : 200
Description of the badge
customIconId<int>
ID of the file attachment that contains the badge icon
defaultIconId<int>
ID of the default icon

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;name&quot;:&quot;Badge 2&quot;,&quot;isCustom&quot;:&quot;true&quot;,&quot;description&quot;:&quot;Top Contributor&quot;,&quot;levelName&quot;:null,&quot;id&quot;:&quot;3000000000010&quot;,&quot;iconUrl&quot;:&quot;https://www.zylker.com/badge2.jpg&quot;}