Remove labels from user

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

This API removes the labels you specify from 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 removed
labelIdsstringList containing the IDs of the labels to remove

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

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