API populate a label (website widget)

Hello,

 

Trying to set a label through the website widget, but I dont think the api allows this. :(

Right now im setting a custom field and a rule that sets a label if the custom field is filled with data.
This seems a bad work around....

window.Trengo.ticket_data = {
    custom_fields: [{
        field_id: 219284,
        value: 'blendedlaw'
    }]
};

 

Does anyone know if something like this is posible? (so change the custom_field array with labels)

window.Trengo.ticket_data = {
    labels: [{
        label_id: 846359,
        value: 'now'
    }]
};


Hope there is a sollution to set labels :-)

 

Great, Jesse - blended.law

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 3 mths agoLast active
  • 13Views
  • 1 Following