Assign labels to user

POST {{baseUrl}}/api/v1/users/:user_id/labels/assign?labels=<list>

This API assigns the labels you specify to a particular user.

OAuth Scope

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

Request Params

KeyDatatypeRequiredDescription
helpCenterIdstringID of the help center from which the labels must be validated
labelsstringList containing the details of the labels to assign

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:true,&quot;id&quot;:&quot;24073000002958013&quot;,&quot;errors&quot;:null},{&quot;success&quot;:true,&quot;id&quot;:&quot;24073000002958023&quot;,&quot;errors&quot;:null},{&quot;success&quot;:false,&quot;id&quot;:&quot;24073000002152013&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;FORBIDDEN&quot;,&quot;httpCode&quot;:403,&quot;error&quot;:&quot;Restricted&quot;}}]}