Add Badges to a user

POST {{baseUrl}}/api/v1/users/:user_id/badges/associate

This API adds specified badges to user.

OAuth Scope

  • Desk.contacts.UPDATE
  • Desk.settings.UPDATE

Attributes

Attribute NameData TypeDescription
badgeIds (required)<list>
IDs of the badges to which the user must be associated

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:true,&quot;id&quot;:&quot;24073000002823212&quot;,&quot;errors&quot;:null},{&quot;success&quot;:false,&quot;id&quot;:&quot;24073000002832252&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;FORBIDDEN&quot;,&quot;httpCode&quot;:403}}]}